function GatherByMask(const X: TMtxVecInt; const Mask: TMtxVecInt; const MaskNonZeroCount: Integer): TVecInt;
Gathers elements from X specified by non-zero values stored in the Mask to the calling object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | Mask | TMtxVecInt | source TVecInt or TMtxInt |
| 3 | MaskNonZeroCount | Integer |
Result: stored in self (calling object), returns self for chaining