Skip to content

num::l1_norm

Defined in header <container/reduce.hpp>

real l1_norm(const vec<real> &x);

Compute the 1-norm: \(\|x\|_1 = \sum_i |x_i|\).