Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function Find(const x: TCplx): Integer; | Compare complex value X with all calling object elements. |
| 2 | function Find(const x: Double): Integer; | Finds a match for X in object values. |
Overload 1: function Find(const x: TCplx): Integer;
Compare complex value X with all calling object elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | x | TCplx | scalar |
Returns: Int32 - the index of first matched element. If no matching elements are found, the result is -1.
Remarks:
An exception is raised if calling object TMtxVec.Complex property is false.
Overload 2: function Find(const x: Double): Integer;
Finds a match for X in object values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | x | Double | scalar |
Returns: Int32 - 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.
Examples
var a: Matrix;
ind: Integer;
begin
a.SetIt(False,[2,5,1,6]);
ind := a.Find(1.0); // returns 2 (the arrays are zero based)
end;