function GroupSumIteration(const Bins: TMtxVecInt; const Src: TMtxVec; const BinsMax: integer): TVec; overload;
Sums items from Src with matching corresponding indexes from Bins and places result in self.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Bins | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | Src | TMtxVec | source TVec or TMtx |
| 3 | BinsMax | integer |
Result: stored in self (calling object), returns self for chaining
Remarks:
The size of self is checked to be BinsMax+1. The routine does not initialize the calling vector to 0. The routine does not perform additional range checking, because BinsMax is provided explicitely (memory overwrite is possible).