VectorInt::FindMask Method

Overload List

#SignatureDescription
1TMtxVecInt *FindMask(TMtxVec *a, const DewString &op, const TCplx &b) const;Finds a vector mask.
2TMtxVecInt *FindMask(TMtxVec *a, const DewString &op, const double b) const;The b parameter is of double type.
3TMtxVecInt *FindMask(TMtxVec *a, const DewString &op, TMtxVec *b) const;The b parameter is of type.
4TMtxVecInt *FindMask(TMtxVecInt *a, const DewString &op, const int b) const;The b parameter is of integer type.
5TMtxVecInt *FindMask(TMtxVecInt *a, const DewString &op, TMtxVecInt *b) const;The b parameter is of TMtxVecInt type.

Overload 1: TMtxVecInt *FindMask(TMtxVec *a, const DewString &op, const TCplx &b) const;

Finds a vector mask.

#NameTypeDescription
1aTMtxVec *
2opconst DewString &
3bconst TCplx &
Remarks:

The calling vector will hold the those elements where the Op comparison between a and b is True. Op string parameter can be '<', '>', '>=','<=','=' or '<>'.

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.

The calling vector stores the mask as Integers in to the memory location occupied by Values array.

See Also: Vector::FindAndGather, VectorInt::FindAndGather, VectorInt::FindAndSplit, VectorInt::FindIndexes, VectorInt::Find, Vector::Gather, VectorInt::Gather, VectorInt::Scatter
Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 2: TMtxVecInt *FindMask(TMtxVec *a, const DewString &op, const double b) const;

The b parameter is of double type.

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

Overload 3: TMtxVecInt *FindMask(TMtxVec *a, const DewString &op, TMtxVec *b) const;

The b parameter is of type.

#NameTypeDescription
1aTMtxVec *
2opconst DewString &
3bTMtxVec *
Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 4: TMtxVecInt *FindMask(TMtxVecInt *a, const DewString &op, const int b) const;

The b parameter is of integer type.

#NameTypeDescription
1aTMtxVecInt *
2opconst DewString &
3bconst int
Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 5: TMtxVecInt *FindMask(TMtxVecInt *a, const DewString &op, TMtxVecInt *b) const;

The b parameter is of TMtxVecInt type.

#NameTypeDescription
1aTMtxVecInt *
2opconst DewString &
3bTMtxVecInt *
Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler