Skip to main content

batch_sub

Function batch_sub 

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

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

ยงErrors

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