CumSum
Return the cumulative sum of matrix/vector elements, including those along the given axis.
double vector::CumSum();
|
Parameters
axis
[in] Axis. ENUM_MATRIX_AXIS enumeration value (AXIS_HORZ — horizontal axis, AXIS_VERT — vertical axis, AXIS_NONE — no axis, calculation along whole matrix).
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}};
|