An extended search_vec which is allowed to return the last element.
More...
#include <search_vec.h>
|
| search_vec_ext () |
| Create a blank searching object.
|
|
| search_vec_ext (size_t nn, const vec_t &x) |
| Create a searching object for vector x of size nn . More...
|
|
size_t | find (const double x0) const |
| Search an increasing or decreasing vector for the interval containing x0
|
|
size_t | find_inc (const double x0) const |
| Search an increasing vector for the interval containing x0
|
|
size_t | find_dec (const double x0) const |
| Search a decreasing vector for the interval containing x0
|
|
|
size_t | cache |
| Storage for the most recent index. More...
|
|
const vec_t * | v |
| The vector to be searched.
|
|
size_t | n |
| The vector size.
|
|
template<class vec_t>
class o2scl::search_vec_ext< vec_t >
Definition at line 261 of file search_vec.h.
◆ search_vec_ext()
◆ cache
- Note
- This is marked mutable to ensure const-correctness is straightforward.
Definition at line 272 of file search_vec.h.
The documentation for this class was generated from the following file: