Function nalgebra_glm::l1_norm

source ·
pub fn l1_norm<N: Real, D: Dimension>(v: &TVec<N, D>) -> Nwhere
    DefaultAllocator: Alloc<N, D>,
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: