Vector.GatherByMask Method

TVec GatherByMask(TMtxVec X, TVecInt Mask)

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.