#ifndef PYTHONIC_NUMPY_ASFARRAY_HPP #define PYTHONIC_NUMPY_ASFARRAY_HPP #include "pythonic/include/numpy/asfarray.hpp" #include "pythonic/numpy/asarray.hpp" PYTHONIC_NS_BEGIN namespace numpy { template auto asfarray(E &&e, dtype d) -> decltype(asarray(std::forward(e), d)) { static_assert(std::is_floating_point::value, "expected a floating point type"); return asarray(std::forward(e), d); } } PYTHONIC_NS_END #endif