MtxExpr.GatherSplit Method

Vector GatherSplit(TVec MaskVec, TVec NotMaskVec, TVecInt Mask)

Gather a vector, split to two vectors.

#NameTypeDescription
1MaskVecTVecsource TVec
2NotMaskVecTVecsource TVec
3MaskTVecIntsource TVecInt

Returns: Vector

Remarks:

If the elements of a vector have been split with a Mask and the "positive" elements have been stored in the MaskVec and "negative" elements have been stored in the NotMaskVec, this routine will restore the original vector.

The length of the MaskVec vector must be equal to the number of ones in the Mask vector. The length of the NotMaskVec vector must be equal to the number of zeroes in the Mask vector.