kotlin-numpy / org.jetbrains.numkt.core / cumSum

cumSum

fun <T : Any> KtNDArray<T>.cumSum(axis: Int? = null): KtNDArray<T> (source)

Return the cumulative sum of the elements along the given axis.

Parameters

axis - along which the cumulative sum is computed. The default (null) is to compute the cumSum over the flattened array.

Return
a new KtNDArray of type T.