fun <T : Any> KtNDArray<T>.cumSum(axis: Int? = null): KtNDArray<T> (source)
Return the cumulative sum of the elements along the given axis.
axis - along which the cumulative sum is computed.
The default (null) is to compute the cumSum over the flattened array.