26 #ifndef MLN_MAKE_W_WINDOW_DIRECTIONAL_HH
27 # define MLN_MAKE_W_WINDOW_DIRECTIONAL_HH
33 # include <mln/core/w_window.hh>
34 # include <mln/core/concept/gdpoint.hh>
35 # include <mln/literal/zero.hh>
51 template <
typename D,
typename W,
unsigned L>
56 # ifndef MLN_INCLUDE_ONLY
58 template <
typename D,
typename W,
unsigned L>
63 mlc_bool(L % 2 == 1)::check();
66 const D& dp =
exact(dp_);
68 mln_precondition(dp != zero);
71 for (
int i = - half; i <= half; ++i)
72 if (weights[half + i] != 0)
73 w_win.
insert(weights[half + i], zero + dp * i);
77 # endif // ! MLN_INCLUDE_ONLY
84 #endif // ! MLN_MAKE_W_WINDOW_DIRECTIONAL_HH