#ifndef PYTHONIC_INCLUDE_NUMPY_ARRAY_HPP #define PYTHONIC_INCLUDE_NUMPY_ARRAY_HPP #include "pythonic/include/utils/functor.hpp" #include "pythonic/include/utils/nested_container.hpp" #include "pythonic/include/types/ndarray.hpp" PYTHONIC_NS_BEGIN namespace numpy { template ::type::dtype>> typename std::enable_if< types::has_size::type>::value, types::ndarray::type::value>>>::type array(T &&iterable, dtype d = dtype()); template ::type::dtype>> typename std::enable_if< !types::has_size::type>::value && !types::is_dtype::type>::value, types::ndarray::type::value>>>::type array(T &&iterable, dtype d = dtype()); template ::type>::type>> typename std::enable_if< !types::has_size::type>::value && types::is_dtype::type>::value, typename dtype::type>::type array(T &&non_iterable, dtype d = dtype()); template types::ndarray>> array(std::tuple<>, dtype); template types::ndarray array(types::ndarray const &arr); template > types::ndarray::shape_t> array(types::array_base const &, dtype d = dtype()); template > types::ndarray::shape_t> array(types::array_base &&, dtype d = dtype()); DEFINE_FUNCTOR(pythonic::numpy, array); } PYTHONIC_NS_END #endif