Mojo function
cumsum
cumsum(dst: NDBuffer[dtype, 1, origin], src: NDBuffer[dtype, 1, origin, shape, strides])
Computes the cumulative sum of all elements in a buffer. dst[i] = src[i] + src[i-1] + ... + src[0].
Args:
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!