Function vector_bsearch (o2scl)¶
- 
template<class vec_t, class data_t>
 size_t o2scl::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, class data_t>
 size_t o2scl::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.