Vector.GatherByIndex Method

TVec GatherByIndex(TMtxVec X, TVecInt Indexes)

Gather vector elements.

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2IndexesTVecIntsource TVecInt

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.