You are here: Symbol Reference > MtxExprInt Namespace > Classes > VectorInt Record > public > FindAndSplit Method > VectorInt.FindAndSplit Method (TMtxVec, string, TMtxVec, TVec, TVec)
MtxVec VCL
ContentsIndex
PreviousUpNext
VectorInt.FindAndSplit Method (TMtxVec, string, TMtxVec, TVec, TVec)

Finds the masks for a vector and splits it.

Pascal
function FindAndSplit(const a: TMtxVec; const op: string; const b: TMtxVec; const MaskVec: TVec; const NotMaskVec: TVec): TMtxVecInt; overload;

The method splits the a vector in two vectors. The MaskVec will hold the those elements where the Op comparison between a and b is True. Op string parameter can be '<', '>', '>=','<=','=' or '<>'. NotMaksVec will hold all those elements where the Op comparison between a and b is false. 

The calling vector will store the mask, 1 at those index locations where the Op comparison was True and 0 at those index locations where the Op comparison was false.

Vector.FindAndGather, VectorInt.FindAndGather, FindIndexes, Find, Vector.Gather, VectorInt.Gather, Scatter

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