#ifndef PYTHONIC_INCLUDE_NUMPY_SIZE_HPP #define PYTHONIC_INCLUDE_NUMPY_SIZE_HPP #include "pythonic/include/utils/functor.hpp" #include "pythonic/include/types/ndarray.hpp" PYTHONIC_NS_BEGIN namespace numpy { template auto size(E const &e) -> decltype(e.flat_size()); DEFINE_FUNCTOR(pythonic::numpy, size) } PYTHONIC_NS_END #endif