Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxVecInt *CumSum(int Index, int Len); | Cumulative sum. |
| 2 | TMtxVecInt *CumSum(TMtxVecInt *Vec, int VecIndex, int Index, int Len); | Calculate the cumulative sum for Vec elements [VecIndex]..[VecIndex+Len-1]. |
Overload 1: TMtxVecInt *CumSum(int Index, int Len);
Cumulative sum.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | int | |
| 2 | Len | int |
Remarks:
Calculate the cumulative sum for calling object elements [Index]..[Index+Len-1] in-place. An exception is raised if TAbstractMtxVecInt::ConditionCheck is true and array borders are overrun.
See Also: TAbstractMtxVecInt::Sum
Declared in Dew::Math::TMtxVecInt · Dew.Math/AbstractMtxVecInt.h · Cross-compiler
Overload 2: TMtxVecInt *CumSum(TMtxVecInt *Vec, int VecIndex, int Index, int Len);
Calculate the cumulative sum for Vec elements [VecIndex]..[VecIndex+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVecInt * | |
| 2 | VecIndex | int | |
| 3 | Index | int | |
| 4 | Len | int |
Remarks:
Store the results in calling object elements [Index]..[Index+Len-1]. Size and TAbstractMtxVecInt::IntPrecision properties of the calling object must be set explicitly. Exception is raised if TAbstractMtxVecInt::ConditionCheck property is True and array borders are overrun.
Declared in Dew::Math::TMtxVecInt · Dew.Math/AbstractMtxVecInt.h · Cross-compiler