You are here: Symbol Reference > MtxExpr Namespace > Classes > Vector Record > public > Vector.GatherSplit Method
MtxVec VCL
ContentsIndex
PreviousUpNext
Vector.GatherSplit Method

Gather a vector, split to two vectors.

Pascal
function GatherSplit(const MaskVec: TMtxVec; const NotMaskVec: TMtxVec; const Mask: TVecInt): TVec; overload;

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.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!