pub fn norm(v: &[f64]) -> f64
Euclidean (L2) norm of a vector.
v
√Σ vᵢ², used as the gradient-norm stopping criterion across optimizers.
√Σ vᵢ²