scicpp::cumsum

Defined in header <scicpp/core.hpp>

Cumulative sum of array elements.


template<typename T, std::size_t N>
std::array<T, N> cumsum(const std::array<T, N> &a)

template<typename T>
std::vector<T> cumsum(const std::vector<T> &a)

See also
Scipy documentation