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

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

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

Store the results in calling object elements [Index]..[Index+Len-1]. Size and IntPrecision 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-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!