Skip to main content

pointwise_div

Function pointwise_div 

Source
pub fn pointwise_div(
    backend: ComputeBackend,
    a: &Field<f64>,
    b: &Field<f64>,
) -> Field<f64>
Expand description

Element-wise quotient of two scalar fields, c[i] = a[i] / b[i].

Units divide: the result carries [a]/[b]. Division by zero yields +/-inf or NaN exactly as f64 division does — no guard is applied, matching Field::pointwise_div.

§Panics

Panics if a.len() != b.len().