26 #ifndef MLN_ESTIM_SUM_HH
27 # define MLN_ESTIM_SUM_HH
35 # include <mln/accu/math/sum.hh>
36 # include <mln/data/compute.hh>
51 mln_sum(mln_value(I))
sum(const Image<I>& input);
59 template <typename I, typename S>
60 void sum(const Image<I>& input, S& result);
63 # ifndef MLN_INCLUDE_ONLY
67 mln_sum(mln_value(I))
sum(const Image<I>& input)
69 mln_precondition(
exact(input).is_valid());
73 template <
typename I,
typename S>
75 void sum(
const Image<I>& input, S& result)
77 mln_precondition(
exact(input).is_valid());
78 accu::math::sum<mln_value(I), S> a;
82 # endif // ! MLN_INCLUDE_ONLY
89 #endif // ! MLN_ESTIM_SUM_HH