VectorInt.GatherByMask Method

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.

#NameTypeDescription
1XTMtxVecInt
2MaskTMtxVecInt
3MaskNonZeroCountInteger

Result: stored in self (calling object), returns self for chaining