pub fn normalize(v: &mut [f64])
Normalise v in-place; if the norm is (near) zero, the vector is left unchanged.
v