Skip to main content

batch_add

Function batch_add 

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

Batch element-wise addition: result[i] = lhs[i] + rhs[i].

ยงErrors

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