Vector.GatherByMask Method

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

Gather vector elements.

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2MaskTVecIntsource TVecInt

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.