TMtxVecIntHelper::FindAndSplit Method

Overload List

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

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

Finds the masks for a vector and splits it.

#NameTypeDescription
1aThisTMtxVecInt *
2aTMtxVec *
3opconst DewString &
4bTMtxVec *
5MaskVecTVec *
6NotMaskVecTVec *
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, Find, TVec::Gather, TMtxVec::Scatter
Declared in Dew::Math::TMtxVecIntHelper · Dew.Math/MtxVec.h · Cross-compiler

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

The b parameter is of TCplx type.

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

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

The b parameter is of double type.

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