You are here: Symbol Reference > AbstractMtxVec Namespace > Classes > TDenseMtxVec Class > public > CumSum Method > TDenseMtxVec.CumSum Method (TMtxVec, Integer, Integer, Integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
TDenseMtxVec.CumSum Method (TMtxVec, Integer, Integer, Integer)

Calculate the cumulative sum for Vec elements [VecIndex]..[VecIndex+Len-1].

Pascal
function CumSum(const Vec: TMtxVec; VecIndex: Integer; Index: Integer; Len: Integer): TMtxVec; overload;

Store the results in calling object elements [Index]..[Index+Len-1]. Size and TMtxVec.Complex properties of the calling object must be set explicitly. Exception is raised if TMtxVecBase.ConditionCheckConditionCheckproperty is True and array borders are overrun.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!