Bracketing solver based the Boost implementation of TOMS 748. More...
#include <root_toms748.h>
This class currently uses o2scl::gsl_tolerance as a test, since this works even when the root is zero.
Definition at line 81 of file root_toms748.h.
Public Member Functions | |
| virtual const char * | type () |
Return the type, "root_toms748". | |
| virtual int | solve_bkt (double &x1, double x2, func_t &func) |
Solve func using x as an initial guess, returning x. | |
Public Member Functions inherited from o2scl::root_bkt< funct > | |
| virtual int | solve_bkt (double &x1, double x2, funct &func)=0 |
Solve func in region returning . | |
| virtual int | solve (double &x, funct &func) |
Solve func using x as an initial guess. More... | |
| virtual int | solve_de (double &x, funct &func, funct &df) |
Solve func using x as an initial guess using derivatives df. | |
Public Member Functions inherited from o2scl::root< funct, funct, double > | |
| virtual int | print_iter (double x, double y, int iter, double value=0.0, double limit=0.0, std::string comment="") |
| Print out iteration information. More... | |
Additional Inherited Members | |
Public Attributes inherited from o2scl::root_bkt< funct > | |
| double | bracket_step |
| The relative stepsize for automatic bracketing (default value is zero) More... | |
| double | bracket_min |
| The minimum stepsize for automatic bracketing (default zero) | |
| size_t | bracket_iters |
| The number of iterations in attempt to bracket root (default 10) | |
Public Attributes inherited from o2scl::root< funct, funct, double > | |
| double | tol_rel |
The maximum value of the functions for success (default ) | |
| double | tol_abs |
The minimum allowable stepsize (default ) | |
| int | verbose |
| Output control (default 0) | |
| int | ntrial |
| Maximum number of iterations (default 100) | |
| bool | err_nonconv |
| If true, call the error handler if the solver does not converge (default true) | |
| int | last_ntrial |
| The number of iterations used in the most recent solve. | |
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).