27 #ifndef MLN_DEBUG_IOTA_HH
28 # define MLN_DEBUG_IOTA_HH
33 # include <mln/core/concept/image.hh>
59 # include <mln/debug/iota.spe.hh>
77 void iota(Image<I>& input,
unsigned base_index);
80 # ifndef MLN_INCLUDE_ONLY
88 iota(trait::image::speed::any, I& input,
unsigned base_index)
90 unsigned i = base_index;
91 mln_piter(I)
p(input.domain());
92 typedef mln_value(I) V;
95 static_cast<V>(++i % mln_max(typename trait::modulus_type<V>::
ret));
102 template <typename I>
105 iota(Image<I>& input)
111 template <
typename I>
114 iota(Image<I>& input,
unsigned base_index)
116 mln_trace(
"debug::iota");
117 mln_precondition(
exact(input).is_valid());
122 # endif // ! MLN_INCLUDE_ONLY
129 #endif // ! MLN_DEBUG_IOTA_HH