TVec::Find Method

Overload List

#SignatureDescription
1int Find(const double x);Finds a match for X in object values.
2int Find(const TCplx &x);Compare complex value X with all calling object elements.

Overload 1: int Find(const double x);

Finds a match for X in object values.

#NameTypeDescription
1xconst double

Returns: the index of first matched element. If no matching elements are found, the result is -1.

Remarks:

Compare real value X with all calling object elements.

Note
This method also supports the NAN and INF search.

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 2: int Find(const TCplx &x);

Compare complex value X with all calling object elements.

#NameTypeDescription
1xconst TCplx &

Returns: the index of first matched element. If no matching elements are found, the result is -1.

Remarks:

An exception is raised if calling object TVec::Complex property is false.

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler