You are here: Symbol Reference > MtxVec Namespace > Classes > TMtxVecIntHelper Class Helper > public > FindAndSplit Method > TMtxVecIntHelper.FindAndSplit Method (TMtxVec, string, TMtxVec, TVec, TVec)
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxVecIntHelper.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.

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