The array to search in.
The value to search.
The index of the searched element in the sorted array, if one is found; otherwise, a negative number that is the bitwise complement of the index of the next element that is large than the searched value or, if there is no larger element(include the case that the array is empty), the bitwise complement of array's length.
Searches the sorted array for an element and returns the index of that element.
The array to search in.
The value to search.
The predicate which implements the less than semantic.
The index of the searched element in the sorted array, if one is found; otherwise, a negative number that is the bitwise complement of the index of the next element that is large than the searched value or, if there is no larger element(include the case that the array is empty), the bitwise complement of array's length.
Searches the sorted number array for an element and returns the index of that element.
The array to search in.
The value to search.
The epsilon to compare the numbers. Default to 1e-6
.
The index of the searched element in the sorted array, if one is found; otherwise, a negative number that is the bitwise complement of the index of the next element that is large than the searched value or, if there is no larger element(include the case that the array is empty), the bitwise complement of array's length.
Generated using TypeDoc
Searches the sorted number array for an element and returns the index of that element.