27 #ifndef MLN_DEBUG_IOTA_HH
28 # define MLN_DEBUG_IOTA_HH
35 # include <mln/core/concept/image.hh>
38 # include <mln/debug/iota.spe.hh>
53 void iota(Image<I>& input,
unsigned base_index);
56 # ifndef MLN_INCLUDE_ONLY
64 iota(trait::image::speed::any, I& input,
unsigned base_index)
66 unsigned i = base_index;
67 mln_piter(I) p(input.domain());
69 input(p) = ++i % mln_max(mln_value(I));
90 trace::entering(
"debug::iota");
91 mln_precondition(exact(input).is_valid());
92 impl::iota(mln_trait_image_speed(I)(), exact(input), base_index);
93 trace::exiting(
"debug::iota");
97 # endif // ! MLN_INCLUDE_ONLY
104 #endif // ! MLN_DEBUG_IOTA_HH