You are here: Symbol Reference > MtxVec Namespace > Classes > TVec Class > public > TVec.GroupSumIteration Method
MtxVec VCL
ContentsIndex
PreviousUpNext
TVec.GroupSumIteration Method

Sums items from Data with matching corresponding indexes from Bins and places result in self.

Pascal
function GroupSumIteration(const Bins: TMtxVecInt; const Data: TMtxVec; const BinsMax: integer): TVec; overload;

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).

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!