Dew MtxVec NET
TVec.FindAndSplit Methods
Summary
Finds the masks for a vector and splits it.

Class
TVec

Declaration
Function FindAndSplit(a: TMtxVec; op: string; b: TSample; MaskVec, NotMaskVec: TVec): TVec;

Description
The b parameter is of Math387.TSample type.
Declaration
Function FindAndSplit(a: TMtxVec; op: string; b: TCplx; MaskVec, NotMaskVec: TVec): TVec;

Description
The b parameter is of Math387.TCplx type.
Declaration
Function FindAndSplit(a: TMtxVec; op: string; b: TMtxVec; MaskVec, NotMaskVec: TVec): TVec;

Description
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.

The calling vector stores the mask as Integers in to the memory location occupied by Values array. The memory is typecasted to an array of integers via IValues pointer. Other TVec methods can not be used to perform operations on an array of integers unless explicitly specified.

 See Also 
GatherSplit 
FindAndGather 
FindIndexes 
Find 
Gather 
Scatter 

Copyright 2008 Dew Research
http://www.dewresearch.com