#ifndef UFUNC_NAME #error missing UFUNC_NAME #endif // clang-format off #include INCLUDE_FILE(pythonic/include/numpy,UFUNC_NAME) // clang-format on #include "pythonic/include/utils/functor.hpp" #include #include PYTHONIC_NS_BEGIN namespace numpy { namespace UFUNC_NAME { template > auto accumulate(T &&a, long axis = 0, dtype d = dtype()) -> decltype(partial_sum(std::forward(a), axis, d)); DEFINE_FUNCTOR(pythonic::numpy::UFUNC_NAME, accumulate); } } PYTHONIC_NS_END