Le 24/01/2014 19:44, Mathias Gaunard a écrit :
>
> In 
> modules/core/trigonometric/include/nt2/trigonometric/functions/generic/cospi.hpp:
>
> > @@ -12,11 +12,11 @@
> >  #include <nt2/trigonometric/functions/scalar/impl/trigo.hpp>
> >  #include <nt2/trigonometric/functions/simd/common/impl/trigo.hpp>
> >  #include <boost/simd/sdk/simd/meta/is_native.hpp>
> > -#include <nt2/include/functions/simd/tofloat.hpp>
> > +#include <nt2/sdk/meta/as_floating.hpp>
>
> why is cospi still returning a float?
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/MetaScale/nt2/pull/635/files#r9158286>.
>
cospi is still used elsewhere for int -> float

this was explained in the header of the pull request:

 > the exception is cospi which has been left untouched, but which will 
be modyfied later to have an int -> int case, the int -> float > case 
being put in a new functor minusonepow (or whatever chosen name)