VectorInt::CumSum Method

Overload List

#SignatureDescription
1TMtxVecInt *CumSum(int Index, int Len) const;Cumulative sum.
2TMtxVecInt *CumSum(TMtxVecInt *Vec, int VecIndex, int Index, int Len) const;Calculate the cumulative sum for Vec elements [VecIndex]..[VecIndex+Len-1].
3TVecInt *CumSum() const;Cumulative sum.
4TVecInt *CumSum(TVecInt *Vec) const;Calculate the cumulative sum for all Vec elements.

Overload 1: TMtxVecInt *CumSum(int Index, int Len) const;

Cumulative sum.

#NameTypeDescription
1Indexint
2Lenint
Remarks:

Calculate the cumulative sum for calling object elements [Index]..[Index+Len-1] in-place. An exception is raised if TMtxVecBase::ConditionCheck is true and array borders are overrun.

See Also: VectorInt::Sum
Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 2: TMtxVecInt *CumSum(TMtxVecInt *Vec, int VecIndex, int Index, int Len) const;

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

#NameTypeDescription
1VecTMtxVecInt *
2VecIndexint
3Indexint
4Lenint
Remarks:

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

Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 3: TVecInt *CumSum() const;

Cumulative sum.

Remarks:

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

See Also: VectorInt::Sum
Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 4: TVecInt *CumSum(TVecInt *Vec) const;

Calculate the cumulative sum for all Vec elements.

#NameTypeDescription
1VecTVecInt *
Remarks:

Store the results in calling object. Size and TMtxVecInt::IntPrecision properties of the calling object are set implicitly.

Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler