Skip to main content

batch_sqrt

Function batch_sqrt 

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

Batch element-wise square root: result[i] = sqrt(inp[i]).

sqrt of a negative value produces NaN per IEEE-754.

ยงErrors

Returns BatchError::LengthMismatch when inp and result differ in length.