You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > Vector Structure > Vector Methods > CumSum Method > Vector.CumSum Method (int, int)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Vector.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: Vector; begin a.SetIt(false,[1,2,3,4]; a.CumSum; // 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!