pub fn normalise(x: &mut Vec<f64>)
Normalise a vector to unit ℓ₂ norm in place.
If the norm is smaller than 1e-14 the vector is left unchanged.
1e-14