Skip to main content

normalize

Function normalize 

Source
pub fn normalize(values: &mut [f32]) -> Result<()>
Expand description

L2-normalize in place using f64 accumulation to avoid f32 overflow/underflow. Zero (including empty) and non-finite inputs fail without modifying the input.