26 #ifndef MLN_FUN_X2V_L1_NORM_HH
27 # define MLN_FUN_X2V_L1_NORM_HH
33 # include <mln/core/concept/function.hh>
34 # include <mln/algebra/vec.hh>
35 # include <mln/math/abs.hh>
48 struct l1_norm :
public Function_v2v< l1_norm<V> >
50 typedef mln_coord(V) C;
51 typedef mln_sum(C) result;
53 result operator()(const V& v) const;
57 # ifndef MLN_INCLUDE_ONLY
61 typename l1_norm<V>::result
62 l1_norm<V>::operator()(
const V& v)
const
65 for (
unsigned i = 0; i < V::dim; ++i)
70 # endif // ! MLN_INCLUDE_ONLY
79 #endif // ! MLN_FUN_X2V_L1_NORM_HH