l1-norm ( k -- x )
Matrix operations

Prev:matrix-p-q-norm ( m p q -- n )
Next:l2-norm ( k -- x )


Vocabulary
math.vectors

Inputs
ka sequence


Outputs
xa non-negative real number


Generic word contract
Computes the norm (size) of k in 𝑙₁ (L^1) vector space, usually written ∥・∥₁.

Examples
USING: math.vectors prettyprint ; { 1 2 3 4 } l1-norm .
10


See also
norm-sq, norm, l-infinity-norm, p-norm

Definition