Vector.GatherByIndex Method

function GatherByIndex(const X: TMtxVec; const Indexes: TVecInt): TVec;

Gather vector elements.

#NameTypeDescription
1XTMtxVec
2IndexesTVecInt

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

Remarks:

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