pub fn nrm2_ndarray<T: Field + Real>(x: &Array1<T>) -> T
Computes the Euclidean (L2) norm of a vector.
||x||_2 = sqrt(sum(x_i^2))