#ifndef PYTHONIC_INCLUDE_NUMPY_NDARRAY_RESHAPE_HPP #define PYTHONIC_INCLUDE_NUMPY_NDARRAY_RESHAPE_HPP #include "pythonic/include/utils/functor.hpp" #include "pythonic/include/utils/numpy_conversion.hpp" #include "pythonic/include/types/ndarray.hpp" PYTHONIC_NS_BEGIN namespace numpy { namespace ndarray { template typename std::enable_if::value, types::ndarray>::type reshape(types::ndarray const &expr, NpS const &new_shape); template typename std::enable_if::value, types::ndarray>>::type reshape(types::ndarray const &expr, NpS const &new_shape); template auto reshape(types::ndarray const &expr, S0 i0, S1 i1, S const &... indices) -> decltype(reshape(expr, types::pshape{i0, i1, indices...})); NUMPY_EXPR_TO_NDARRAY0_DECL(reshape); DEFINE_FUNCTOR(pythonic::numpy::ndarray, reshape); } } PYTHONIC_NS_END #endif