Skip to main content

batch_neg

Function batch_neg 

Source
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.