CumSum
Return the cumulative sum of matrix/vector elements, including those along the given axis.
vector vector::CumSum();
|
Parameters
axis
[in] Axis. 0 — horizontal axis, 1 — vertical axis.
Return Value
Cumulative sum of the elements along the given axis.
Example
matrix matrix_a={{10,3,2},{1,8,12},{6,5,4},{7,11,9}};
|