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