TMtx::CumSum Method

Overload List

#SignatureDescription
1TMtxVec *CumSum(int Index, int Len);Cumulative sum.
2TMtxVec *CumSum(TMtxVec *Vec, int VecIndex, int Index, int Len);Calculate the cumulative sum for Vec elements [VecIndex]..[VecIndex+Len-1].
3TMtx *CumSum();Cumulative sum for each of the matrix columns.
4TMtx *CumSum(TMtx *Mtx);Calculate the cumulative sum for each of the X matrix columns.

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

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 TMtx::ConditionCheck is true and array borders are overrun.

See Also: TMtx::Sum
Declared in Dew::Math::TDenseMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

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

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

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

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

Declared in Dew::Math::TDenseMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 3: TMtx *CumSum();

Cumulative sum for each of the matrix columns.

Remarks:

Calculate the cumulative sum for each of the calling matrix columns in-place.

See Also: TMtx::SumCols
Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler

Overload 4: TMtx *CumSum(TMtx *Mtx);

Calculate the cumulative sum for each of the X matrix columns.

#NameTypeDescription
1MtxTMtx *
Remarks:

Store the results in calling matrix. The TMtx::Rows, TMtx::Cols and TMtx::Complex properties of the callig matrix are adjusted implicitly to match those of Mtx matrix.

Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler