function GatherByMask(const X: TVecInt; const Mask: TMtxVecInt; const MaskNonZeroCount: Integer): VectorInt;
Gathers elements from X specified by non-zero values stored in the Mask in to the result.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TVecInt | |
| 2 | Mask | TMtxVecInt | |
| 3 | MaskNonZeroCount | Integer |
Returns: VectorInt