You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting from an initial `guess` index, find indices `(lo, hi)` such that `v[lo] ≤ x ≤
143
-
v[hi]` according to the specified order, assuming that `x` is actually within the range of
142
+
Starting from an initial `guess` index, find indices `(lo, hi)` such that `v[lo] ≤ x ≤ v[hi]` according to the specified order, assuming that `x` is actually within the range of
144
143
values found in `v`. If `x` is outside that range, either `lo` will be `firstindex(v)` or
145
144
`hi` will be `lastindex(v)`.
146
145
@@ -157,11 +156,11 @@ this function would be the index returned by the previous call to `searchsorted`
157
156
See `Base.sort!` for an explanation of the keyword arguments `by`, `lt` and `rev`.
158
157
"""
159
158
functionbracketstrictlymontonic(
160
-
v::AbstractVector,
161
-
x,
162
-
guess::T,
163
-
o::Base.Order.Ordering,
164
-
)::NTuple{2,keytype(v)}where {T<:Integer}
159
+
v::AbstractVector,
160
+
x,
161
+
guess::T,
162
+
o::Base.Order.Ordering
163
+
)::NTuple{2,keytype(v)}where {T<:Integer}
165
164
bottom =firstindex(v)
166
165
top =lastindex(v)
167
166
if guess < bottom || guess > top
@@ -206,21 +205,21 @@ function looks_linear(v; threshold = 1e-2)
0 commit comments