Object-oriented Scientific Computing Library: Version 0.910
Public Member Functions
search_vec_ext< vec_t > 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< vec_t >:
search_vec< vec_t >

Detailed Description

template<class vec_t>
class search_vec_ext< vec_t >

Definition at line 217 of file search_vec.h.

Public Member Functions

 search_vec_ext (size_t nn, vec_t &x)
 Create a searching object for vector x of size nn.
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

template<class vec_t >
search_vec_ext< vec_t >::search_vec_ext ( size_t  nn,
vec_t &  x 
) [inline]
Idea for Future:
This could be rewritten to allow vectors with only one element (5/2/11: It looks like this might have been done already?)

Create a searching object with vector x of size nn

Definition at line 230 of file search_vec.h.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.