MtxExpr::GatherSplit Function

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

Gather a vector, split to two vectors.

#NameTypeDescription
1MaskVecTVec *
2NotMaskVecTVec *
3MaskTVecInt *
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.

Declared in Dew::Math::Units::MtxExpr · Dew.Math/Units.MtxExpr.h · Cross-compiler