pub fn norm_l2(vector: &[f64]) -> f64
Compute the L2 norm (Euclidean distance) of a vector.
let x = [1.0, 2.0, 3.0]; let n = norm_l2(&x);