Overload List
| # | Signature | Description |
|---|---|---|
| 1 | int BinarySearch(const int X) const; | Finds a match for X in object values using binary search. |
| 2 | int BinarySearch(const int X, const int Index, const int Len) const; | |
| 3 | bool BinarySearch(const int X, int &XIndex) const; | Finds a closest match for X in object values using binary search. |
| 4 | bool BinarySearch(const int X, int &XIndex, const int Index, int Len) const; |
Overload 1: int BinarySearch(const int X) const;
Finds a match for X in object values using binary search.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | const int |
Returns: the index of first matched element. If no matching elements are found, the result is -1.
Remarks:
The data in the vector must be sorted in ascending order for this function to work correctly.
Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler
Overload 2: int BinarySearch(const int X, const int Index, const int Len) const;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | const int | |
| 2 | Index | const int | |
| 3 | Len | const int |
Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler
Overload 3: bool BinarySearch(const int X, int &XIndex) const;
Finds a closest match for X in object values using binary search.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | const int | |
| 2 | XIndex | int & |
Returns: True, if found and the index of the closest match in XIndex.
Remarks:
The data in the vector must be sorted in ascending order for this function to work correctly.
Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler
Overload 4: bool BinarySearch(const int X, int &XIndex, const int Index, int Len) const;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | const int | |
| 2 | XIndex | int & | |
| 3 | Index | const int | |
| 4 | Len | int |
Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler