Skip to main content

axpy_mul

Function axpy_mul 

Source
pub fn axpy_mul<T: SimdOps>(
    alpha: T,
    a: &[T],
    b: &[T],
    out: &mut [T],
) -> Result<(), SimdError>
Expand description

Fused ternary update out[i] += alpha * a[i] * b[i] without a temporary.

ยงErrors

Returns SimdError::LengthMismatch when a, b, and out do not have equal lengths.