Skip to main content

pointwise_mul

Function pointwise_mul 

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

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

The workhorse behind rho*h, and behind any coefficient-times-field assembly. Units multiply: the result carries [a]*[b].

Bit-identical to Field::pointwise_mul.

ยงPanics

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