Skip to main content

normalise

Function normalise 

Source
pub fn normalise(x: &mut Vec<f64>)
Expand description

Normalise a vector to unit ℓ₂ norm in place.

If the norm is smaller than 1e-14 the vector is left unchanged.