You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > Matrix Structure > Matrix Methods > CumSum Method > Matrix.CumSum Method ()
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Matrix.CumSum Method ()

Cumulative sum for each of the matrix columns.

Syntax
C#
Visual Basic
public TMtx CumSum();

Calculate the cumulative sum for each of the calling matrix columns in-place.

var Mtx: Matrix; begin Mtx.Size(false,3,2,[1,2, 2,5, 3,1]); Mtx.CumSum; // Mtx becomes: // 1, 2 // 3, 7 // 6, 8 end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!