Vector::Find Method

Overload List

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

Overload 1: int Find(const double X) const;

Finds a match for X in object values.

#NameTypeDescription
1Xconst double
Remarks:

Compare real value X with all calling object elements and return the Index of last matched element. If no matching elements are found, the result is -1.

Note
This method also supports the NAN and INF search.

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

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

Compare complex value X with all calling object elements.

#NameTypeDescription
1Xconst TCplx &

Returns: the Index of last matched element.

Remarks:

If no matching elements are found, the result is -1. An exception is raised if calling object Vector::Complex property is false.

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