#ifndef PYTHONIC_NUMPY_ISSCALAR_HPP #define PYTHONIC_NUMPY_ISSCALAR_HPP #include "pythonic/include/numpy/isscalar.hpp" #include "pythonic/utils/functor.hpp" #include "pythonic/types/traits.hpp" #include "pythonic/types/str.hpp" #include PYTHONIC_NS_BEGIN namespace numpy { template constexpr bool isscalar(E const &) { return types::is_dtype::value || std::is_same::value; } } PYTHONIC_NS_END #endif