scicpp::cumprod

Defined in header <scicpp/core.hpp>

Cumulative product of array elements.


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

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

See also
Scipy documentation