pub(crate) fn norm(vector: &[Complex]) -> f64
Euclidean norm without overflow or underflow of the squared terms.