TSparseMtx.ScatterByMask Method

TMtxVec ScatterByMask(TMtxVec Src, TMtxVecInt Mask, Boolean allow_resizing)

Scatters Src elements defined with the Mask to the calling object.

#NameTypeDescription
1SrcTMtxVecsource TVec or TMtx
2MaskTMtxVecIntsource TVecInt or TMtxInt
3allow_resizingBoolean

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

Remarks:

The elements are assumed to be not scattered in the Src! This is not a masked copy operation. It is a reverse of GatherByMask.