Vector::GroupSumIteration Method

TVec *GroupSumIteration(TMtxVecInt *Bins, TMtxVec *Src, const int BinsMax) const;

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

#NameTypeDescription
1BinsTMtxVecInt *
2SrcTMtxVec *
3BinsMaxconst int
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).

Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler