Skip to main content

normalize

Function normalize 

Source
pub fn normalize(v: &mut Array1<f32>)
Expand description

Normalize a vector to unit length (L2 norm). Leaves zero vectors unchanged.