TMtxVecIntHelper.FindAndSplit Method

Overload List

#SignatureDescription
1function FindAndSplit(aThis: TMtxVecInt; a: TMtxVec; op: string; b: TCplx; MaskVec: TVec; NotMaskVec: TVec): TMtxVecInt;The b parameter is of TCplx type.
2function FindAndSplit(aThis: TMtxVecInt; a: TMtxVec; op: string; b: TMtxVec; MaskVec: TVec; NotMaskVec: TVec): TMtxVecInt;Finds the masks for a vector and splits it.
3function FindAndSplit(aThis: TMtxVecInt; a: TMtxVec; op: string; b: Double; MaskVec: TVec; NotMaskVec: TVec): TMtxVecInt;The b parameter is of double type.

Overload 1: function FindAndSplit(aThis: TMtxVecInt; a: TMtxVec; op: string; b: TCplx; MaskVec: TVec; NotMaskVec: TVec): TMtxVecInt;

The b parameter is of TCplx type.

#NameTypeDescription
1aThisTMtxVecIntsource TVecInt or TMtxInt
2aTMtxVecsource TVec or TMtx
3opstring
4bTCplxscalar
5MaskVecTVecsource TVec
6NotMaskVecTVecsource TVec

Result: stored in self (calling object), returns self for chaining

Overload 2: function FindAndSplit(aThis: TMtxVecInt; a: TMtxVec; op: string; b: TMtxVec; MaskVec: TVec; NotMaskVec: TVec): TMtxVecInt;

Finds the masks for a vector and splits it.

#NameTypeDescription
1aThisTMtxVecIntsource TVecInt or TMtxInt
2aTMtxVecsource TVec or TMtx
3opstring
4bTMtxVecsource TVec or TMtx
5MaskVecTVecsource TVec
6NotMaskVecTVecsource TVec

Result: stored in self (calling object), returns self for chaining

Remarks:

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.

See Also: TVec.GatherSplit, TVec.FindAndGather, TMtxVecIntHelper.FindIndexes, MtxVec.Find, TVec.Gather, TMtxVec.Scatter

Overload 3: function FindAndSplit(aThis: TMtxVecInt; a: TMtxVec; op: string; b: Double; MaskVec: TVec; NotMaskVec: TVec): TMtxVecInt;

The b parameter is of double type.

#NameTypeDescription
1aThisTMtxVecIntsource TVecInt or TMtxInt
2aTMtxVecsource TVec or TMtx
3opstring
4bDoublescalar
5MaskVecTVecsource TVec
6NotMaskVecTVecsource TVec

Result: stored in self (calling object), returns self for chaining