pub fn batch_neg(inp: &[f64], result: &mut [f64]) -> Result<(), BatchError>Expand description
Batch element-wise negation: result[i] = -inp[i].
ยงErrors
Returns BatchError::LengthMismatch when inp and result differ
in length.
pub fn batch_neg(inp: &[f64], result: &mut [f64]) -> Result<(), BatchError>Batch element-wise negation: result[i] = -inp[i].
Returns BatchError::LengthMismatch when inp and result differ
in length.