api / koma.matrix / Matrix / cumSum
cumSum
Calculates the cumulative (ongoing) sum of a matrix's elements. For example,
cumsum(mat[1,2,3])
would return mat[1,3,6]
. Assumes matrix type is convertible to
double.
@return A 1xarr.numRows*arr.numCols vector storing the ongoing cumsum.