Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxVec *CumSum(int Index, int Len) const; | Cumulative sum. |
| 2 | TMtxVec *CumSum(TMtxVec *Vec, int VecIndex, int Index, int Len) const; | Calculate the cumulative sum for Vec elements [VecIndex]..[VecIndex+Len-1] and store the results in calling object elements [Index]..[Index+Len-1]. |
| 3 | TVec *CumSum() const; | Cumulative sum. |
| 4 | TVec *CumSum(TVec *Vec) const; | Calculate the cumulative sum for all Vec elements. |
Overload 1: TMtxVec *CumSum(int Index, int Len) const;
Cumulative sum.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | int | |
| 2 | Len | int |
Calculate the cumulative sum for calling object elements [Index]..[Index+Len-1] in-place. An exception is raised if Vector::ConditionCheck is true and array borders are overrun.
Overload 2: TMtxVec *CumSum(TMtxVec *Vec, int VecIndex, int Index, int Len) const;
Calculate the cumulative sum for Vec elements [VecIndex]..[VecIndex+Len-1] and store the results in calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVec * | |
| 2 | VecIndex | int | |
| 3 | Index | int | |
| 4 | Len | int |
Size and Vector::Complex properties of the calling object must be set explicitly. Exception is raised if Vector::ConditionCheck property is True and array borders are overrun.
Overload 3: TVec *CumSum() const;
Cumulative sum.
Calculate the cumulative sum for all calling object elements in-place.
Overload 4: TVec *CumSum(TVec *Vec) const;
Calculate the cumulative sum for all Vec elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TVec * |
Store the results in calling object. Size and Vector::Complex properties of the calling object are set implicitly.