Skip to content

num::l1_norm

Defined in header <container/reduce.hpp>

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

The 1-norm \(\sum_i |x_i|\).