You are here: Symbol Reference > MtxExprInt Namespace > Classes > MatrixInt Record > public > CumSum Method > MatrixInt.CumSum Method (TMtxVecInt, Integer, Integer, Integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
MatrixInt.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 ConditionCheck property 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!