#ifndef PYTHONIC_INCLUDE_NUMPY_ASSCALAR_HPP #define PYTHONIC_INCLUDE_NUMPY_ASSCALAR_HPP #include "pythonic/include/utils/functor.hpp" #include "pythonic/include/types/ndarray.hpp" #include "pythonic/include/numpy/asarray.hpp" PYTHONIC_NS_BEGIN namespace numpy { template using asscalar_result_type = typename std::conditional< std::is_integral::value, long, typename std::conditional::value, double, std::complex>::type>::type; template asscalar_result_type asscalar(E const &expr); DEFINE_FUNCTOR(pythonic::numpy, asscalar); } PYTHONIC_NS_END #endif