Template Function mrpt::math::cumsum_tmpl
Defined in File ops_containers.h
Function Documentation
-
template<class CONTAINER1, class CONTAINER2>
void mrpt::math::cumsum_tmpl(const CONTAINER1 &in_data, CONTAINER2 &out_cumsum) Computes the cumulative sum of all the elements, saving the result in another container. This works for both matrices (even mixing their types) and vectores/arrays (even mixing types), and even to store the cumsum of any matrix into any vector/array, but not in opposite direction.
See also
sum