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

Cumulative sum.

Syntax
C#
Visual Basic
public TMtxVec CumSum(int Index, int Len);

Calculate the cumulative sum for calling object elements [Index]..[Index+Len-1] in-place. An exception is raised if ConditionCheck is true and array borders are overrun.

var a: Matrix; begin a.SetIt(2,2,false,[1,2,3,4]; a.CumSum(0,4); // a = [1,3,6,10] end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!