pub fn asum_ndarray<T: Field + Real>(x: &Array1<T>) -> T
Computes the L1 norm (sum of absolute values) of a vector.
||x||_1 = sum(|x_i|)