# [−][src]Function nalgebra_glm::l1_norm

pub fn l1_norm<N: Real, D: Dimension>(v: &TVec<N, D>) -> N where

DefaultAllocator: Alloc<N, D>,

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`

.