Vector::FindAndGather Method

Overload List

#SignatureDescription
1TVec *FindAndGather(TMtxVec *a, const DewString &op, const TCplx &b, TVecInt *Indexes = null) const;Finds and gathers vector elements.
2TVec *FindAndGather(TMtxVec *a, const DewString &op, const double b, TVecInt *Indexes = null) const;The b parameter is of double type.
3TVec *FindAndGather(TMtxVec *a, const DewString &op, TMtxVec *b, TVecInt *Indexes = null) const;The b parameter is of TMtxVec type.

Overload 1: TVec *FindAndGather(TMtxVec *a, const DewString &op, const TCplx &b, TVecInt *Indexes = null) const;

Finds and gathers vector elements.

#NameTypeDescription
1aTMtxVec *
2opconst DewString &
3bconst TCplx &
4Indexes = nullTVecInt *
Remarks:

Fills the Indexes vector with indexes, of those elements where the Op comparison between a and b is True. Op string parameter can be '<', '>', '>=','<=','=' or '<>'. The method also copies or "gathers" the matched elements to the calling vector. The Length and complex property of the calling vector are set automatically.

The Indexes vector stores the indexes as Integer in to the memory location occupied by Values array. The memory is typecasted to an array of integers via IValues array property. Other TMtxVec methods can not be used to perform operations on an array of integers unless explicitely specified.

Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 2: TVec *FindAndGather(TMtxVec *a, const DewString &op, const double b, TVecInt *Indexes = null) const;

The b parameter is of double type.

#NameTypeDescription
1aTMtxVec *
2opconst DewString &
3bconst double
4Indexes = nullTVecInt *
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 3: TVec *FindAndGather(TMtxVec *a, const DewString &op, TMtxVec *b, TVecInt *Indexes = null) const;

The b parameter is of TMtxVec type.

#NameTypeDescription
1aTMtxVec *
2opconst DewString &
3bTMtxVec *
4Indexes = nullTVecInt *
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler