# Accumulating functions

xtensor provides the following accumulating functions for xexpressions:

Defined in `xtensor/core/xmath.hpp`

template<class T = void, class E>
inline auto xt::cumsum(E &&e)

Warning

doxygenfunction: Unable to resolve function “cumsum” with arguments (E&&, std::ptrdiff_t) in doxygen xml output for project “xtensor” from directory: ../xml. Potential matches:

    - template<class T = void, class E> auto cumsum(E &&e)

template<class T = void, class E>
inline auto xt::cumprod(E &&e)

Warning

doxygenfunction: Unable to resolve function “cumprod” with arguments (E&&, std::ptrdiff_t) in doxygen xml output for project “xtensor” from directory: ../xml. Potential matches:

    - template<class T = void, class E> auto cumprod(E &&e)