Functions vector_bsearch¶
-
template<class
vec_t
, classdata_t
>
size_to2scl
::
vector_bsearch
(const data_t x0, const vec_t &x, size_t lo, size_t hi)¶ Binary search a part of a monotonic vector for
x0
.This wrapper just calls o2scl::vector_bsearch_inc() or o2scl::vector_bsearch_dec() depending on the ordering of
x
.
-
template<class
vec_t
, classdata_t
>
size_to2scl
::
vector_bsearch
(const data_t x0, const vec_t &x)¶ Binary search a monotonic vector for
x0
.This function calls o2scl::vector_bsearch_inc() or o2scl::vector_bsearch_dec() depending on the ordering of
x
.