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

Cumulative sum.

Syntax
C#
Visual Basic
public TVec CumSum();

Calculate the cumulative sum for all calling object elements in-place.

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!