1 #ifndef PYTHONIC_INCLUDE_NUMPY_ROLL_HPP
2 #define PYTHONIC_INCLUDE_NUMPY_ROLL_HPP
3 
4 #include "pythonic/include/utils/functor.hpp"
5 #include "pythonic/include/utils/numpy_conversion.hpp"
6 #include "pythonic/include/types/ndarray.hpp"
7 
8 PYTHONIC_NS_BEGIN
9 
10 namespace numpy
11 {
12   template <class T, class pS>
13   types::ndarray<T, pS> roll(types::ndarray<T, pS> const &expr, long shift);
14 
15   template <class T, class pS>
16   types::ndarray<T, pS> roll(types::ndarray<T, pS> const &expr, long shift,
17                              long axis);
18 
19   NUMPY_EXPR_TO_NDARRAY0_DECL(roll);
20   DEFINE_FUNCTOR(pythonic::numpy, roll);
21 }
22 PYTHONIC_NS_END
23 
24 #endif
25