root_bkt Class Template Reference

1-dimensional bracketing solver [abstract base] More...

#include <root.h>

Inheritance diagram for root_bkt:

root cern_root gsl_root_brent

Detailed Description

template<class param_t, class func_t = funct<param_t>, class dfunc_t = func_t>
class root_bkt< param_t, func_t, dfunc_t >

1-dimensional bracketing solver [abstract base]

Definition at line 154 of file root.h.


Public Member Functions

virtual const char * type ()
 Return the type, "root_bkt".
virtual int solve_bkt (double &x1, double x2, param_t &pa, func_t &func)=0
 Solve func in region $ x_1<x<x_2 $ returning $ x_1 $ .
virtual int solve (double &x, param_t &pa, func_t &func)
 Solve func using x as an initial guess.
virtual int solve_de (double &x, param_t &pa, func_t &func, dfunc_t &df)
 Solve func using x as an initial guess using derivatives df.

Data Fields

double bracket_step
 The stepsize for automatic bracketing (default $ 10^{-4} $).

Field Documentation

double bracket_step

The stepsize for automatic bracketing (default $ 10^{-4} $).

If this is exactly zero, it will be reset to $ 10^{-4} $ by solve().

Definition at line 172 of file root.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