search_vec_ext Class Template Reference

An extended search_vec which is allowed to return the last element.

#include <search_vec.h>

Inheritance diagram for search_vec_ext:

search_vec

Detailed Description

template<class vec_t>
class search_vec_ext< vec_t >

Definition at line 220 of file search_vec.h.


Public Member Functions

 search_vec_ext (size_t nn, vec_t &x)
 Desc.
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.

Constructor & Destructor Documentation

search_vec_ext ( size_t  nn,
vec_t &  x 
) [inline]

Idea for future:
This could be rewritten to allow vectors with only one element.
Create a searching object with vector x of size nn

Definition at line 232 of file search_vec.h.


The documentation for this class was generated from the following file:

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page