Skip to main content

batch_fma

Function batch_fma 

Source
pub fn batch_fma(
    lhs: &[f64],
    rhs: &[f64],
    addend: &[f64],
    out: &mut [f64],
) -> Result<(), BatchError>
Expand description

Batch fused multiply-add: out[i] = lhs[i] * rhs[i] + addend[i] with single-rounding semantics when FMA is available.

ยงErrors

Returns BatchError::LengthMismatch when any of the four slices has a different length.