An extended search_vec which is allowed to return the last element. More...
#include <search_vec.h>
Definition at line 293 of file search_vec.h.
Public Member Functions | |
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) |
Search an increasing or decreasing vector for the interval containing x0 | |
size_t | find_inc (const double x0) |
Search an increasing vector for the interval containing x0 | |
size_t | find_dec (const double x0) |
Search a decreasing vector for the interval containing x0 | |
Protected Attributes | |
size_t | cache |
Storage for the most recent index. | |
const vec_t * | v |
The vector to be searched. | |
size_t | n |
The vector size. | |
Private Member Functions | |
search_vec_ext (const search_vec_ext< vec_t > &) | |
search_vec_ext< vec_t > & | operator= (const search_vec_ext< vec_t > &) |
|
inline |
Definition at line 330 of file search_vec.h.
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).