Overload List
| # | Signature | Description |
|---|---|---|
| 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. |
| 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. |
| 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. |
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.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aThis | TMtxVecInt * | |
| 2 | a | TMtxVec * | |
| 3 | op | const DewString & | |
| 4 | b | TMtxVec * | |
| 5 | MaskVec | TVec * | |
| 6 | NotMaskVec | TVec * |
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.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aThis | TMtxVecInt * | |
| 2 | a | TMtxVec * | |
| 3 | op | const DewString & | |
| 4 | b | const TCplx & | |
| 5 | MaskVec | TVec * | |
| 6 | NotMaskVec | TVec * |
Declared in Dew::Math::TMtxVecIntHelper · Dew.Math/MtxVec.h · Cross-compiler