Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxVecInt *FindAndSplit(TMtxVec *a, const DewString &op, TMtxVec *b, TVec *MaskVec, TVec *NotMaskVec) const; | Finds the masks for a vector and splits it. |
| 2 | TMtxVecInt *FindAndSplit(TMtxVec *a, const DewString &op, const TCplx &b, TVec *MaskVec, TVec *NotMaskVec) const; | The b parameter is of TCplx type. |
| 3 | TMtxVecInt *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.
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.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | a | TMtxVec * | |
| 2 | op | const DewString & | |
| 3 | b | const TCplx & | |
| 4 | MaskVec | TVec * | |
| 5 | NotMaskVec | TVec * |
Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler