Vector.GatherByMask Method

function GatherByMask(const X: TMtxVec; const Mask: TVecInt): TVec;

Gather vector elements.

#NameTypeDescription
1XTMtxVec
2MaskTVecInt

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

Remarks:

Gather the elements of vector X at indices defined with Mask and store them to the calling vector.