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