Function nalgebra_glm::l1_norm[][src]

pub fn l1_norm<T: RealField, const D: usize>(v: &TVec<T, D>) -> T
Expand description

The l1-norm of v.

This is also known as the “Manhattan distance” or “taxicab distance” and corresponds to the sum of the absolute values of the components of v.

See also: