#ifndef PYTHONIC_NUMPY_NDARRAY_HPP #define PYTHONIC_NUMPY_NDARRAY_HPP #include "pythonic/include/numpy/ndarray.hpp" #include "pythonic/utils/functor.hpp" #include "pythonic/utils/nested_container.hpp" #include "pythonic/types/ndarray.hpp" PYTHONIC_NS_BEGIN namespace numpy { template types::ndarray> ndarray(pS const &shape, dtype) { return {(sutils::shape_t)shape, builtins::None}; } template types::ndarray> ndarray(long size, dtype d) { return ndarray(types::pshape(size), d); } template types::ndarray>> ndarray(std::integral_constant, dtype d) { return ndarray(types::pshape>({}), d); } } PYTHONIC_NS_END #endif