#ifndef PYTHONIC_INCLUDE_NUMPY_SUM_HPP #define PYTHONIC_INCLUDE_NUMPY_SUM_HPP #include "pythonic/include/numpy/reduce.hpp" #include "pythonic/include/operator_/iadd.hpp" #include "pythonic/include/utils/functor.hpp" PYTHONIC_NS_BEGIN namespace numpy { template auto sum(Args &&... args) -> decltype(reduce(std::forward(args)...)) { return reduce(std::forward(args)...); } DEFINE_FUNCTOR(pythonic::numpy, sum); } PYTHONIC_NS_END #endif