Matrix.ScatterByMask Method

function ScatterByMask(const Src: TMtxVec; const Mask: TVecInt; allow_resizing: Boolean): TMtxVec;

Scatter object elements.

#NameTypeDescription
1SrcTMtxVec
2MaskTVecInt
3allow_resizingBoolean

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

Remarks:

Scatter the elements of the Src and store them in the calling object at indices set to 1 in the Mask parameter.