Public Member Functions | List of all members
o2scl::min_brent_boost< func_t > Class Template Reference

One-dimensional minimization using Brent's method (GSL) More...

#include <min_brent_boost.h>

Inheritance diagram for o2scl::min_brent_boost< func_t >:
o2scl::min_bkt_base< func_t > o2scl::min_base< func_t, func_t >

Public Member Functions

virtual int min_bkt (double &x2, double x1, double x3, double &fmin, func_t &func)
 Calculate the minimum fmin of func with x2 bracketed between x1 and x3. More...
 
virtual const char * type ()
 Return string denoting type ("min_brent_boost")
 
- Public Member Functions inherited from o2scl::min_bkt_base< func_t >
virtual int min (double &x, double &fmin, func_t &func)
 Calculate the minimum min of func w.r.t 'x'. More...
 
virtual int min_de (double &x, double &fmin, func_t &func, func_t &df)
 Calculate the minimum min of func with derivative dfunc w.r.t 'x'. More...
 
- Public Member Functions inherited from o2scl::min_base< func_t, func_t >
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...
 
virtual int bracket (double &ax, double &bx, double &cx, double &fa, double &fb, double &fc, func_t &func)
 Given interval (ax,bx), attempt to bracket a minimum for function func. More...
 

Additional Inherited Members

- Public Attributes inherited from o2scl::min_bkt_base< func_t >
int bracket_iter
 The number of iterations for automatically bracketing a minimum (default 20)
 
- Public Attributes inherited from o2scl::min_base< func_t, func_t >
int verbose
 Output control.
 
int ntrial
 Maximum number of iterations.
 
double tol_rel
 The tolerance for the minimum function value.
 
double tol_abs
 The tolerance for the location of the minimum.
 
int last_ntrial
 The number of iterations used in the most recent minimization.
 
int bracket_iter
 The number of iterations for automatically bracketing a minimum (default 20)
 
bool err_nonconv
 If true, call the error handler if the routine does not "converge".
 

Detailed Description

template<class func_t = funct11>
class o2scl::min_brent_boost< func_t >

This is a wrapper for boost::math::tools::brent_find_minima() .

The value of fourth argument, digits is taken to be $ - \log_{10}(t) $ where $ t $ is the value of o2scl::min_base::tol_rel .

Definition at line 47 of file min_brent_boost.h.

Member Function Documentation

◆ min_bkt()

template<class func_t = funct11>
virtual int o2scl::min_brent_boost< func_t >::min_bkt ( double &  x2,
double  x1,
double  x3,
double &  fmin,
func_t &  func 
)
inlinevirtual

The initial value of x2 is ignored.

Implements o2scl::min_bkt_base< func_t >.

Definition at line 62 of file min_brent_boost.h.


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

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