VectorInt::FindAndSplit Method

Overload List

#SignatureDescription
1TMtxVecInt *FindAndSplit(TMtxVec *a, const DewString &op, TMtxVec *b, TVec *MaskVec, TVec *NotMaskVec) const;Finds the masks for a vector and splits it.
2TMtxVecInt *FindAndSplit(TMtxVec *a, const DewString &op, const TCplx &b, TVec *MaskVec, TVec *NotMaskVec) const;The b parameter is of TCplx type.
3TMtxVecInt *FindAndSplit(TMtxVec *a, const DewString &op, const double b, TVec *MaskVec, TVec *NotMaskVec) const;The b parameter is of double type.

Overload 1: TMtxVecInt *FindAndSplit(TMtxVec *a, const DewString &op, TMtxVec *b, TVec *MaskVec, TVec *NotMaskVec) const;

Finds the masks for a vector and splits it.

#NameTypeDescription
1aTMtxVec *
2opconst DewString &
3bTMtxVec *
4MaskVecTVec *
5NotMaskVecTVec *
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: Vector::FindAndGather, VectorInt::FindAndGather, VectorInt::FindIndexes, VectorInt::Find, Vector::Gather, VectorInt::Gather, VectorInt::Scatter
Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 2: TMtxVecInt *FindAndSplit(TMtxVec *a, const DewString &op, const TCplx &b, TVec *MaskVec, TVec *NotMaskVec) const;

The b parameter is of TCplx type.

#NameTypeDescription
1aTMtxVec *
2opconst DewString &
3bconst TCplx &
4MaskVecTVec *
5NotMaskVecTVec *
Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 3: TMtxVecInt *FindAndSplit(TMtxVec *a, const DewString &op, const double b, TVec *MaskVec, TVec *NotMaskVec) const;

The b parameter is of double type.

#NameTypeDescription
1aTMtxVec *
2opconst DewString &
3bconst double
4MaskVecTVec *
5NotMaskVecTVec *
Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler