23 #ifndef O2SCL_MIN_BRENT_BOOST_H 24 #define O2SCL_MIN_BRENT_BOOST_H 30 #include <boost/math/tools/minima.hpp> 32 #include <o2scl/min.h> 34 #ifndef DOXYGEN_NO_O2NS 65 std::pair<double,double> res;
67 if (this->
tol_rel>1.0) digits=1;
68 else if (this->
tol_rel<=0.0) digits=18;
69 else digits=((size_t)(-log10(this->
tol_rel)));
70 res=boost::math::tools::brent_find_minima(func,x1,x3,digits);
77 virtual const char *
type() {
return "min_brent_boost"; }
81 #ifndef DOXYGEN_NO_O2NS One-dimensional bracketing minimization [abstract base].
double tol_rel
The tolerance for the minimum function value.
virtual const char * type()
Return string denoting type ("min_brent_boost")
The main O<span style='position: relative; top: 0.3em; font-size: 0.8em'>2</span>scl O$_2$scl names...
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.
static const double x3[11]
One-dimensional minimization using Brent's method (GSL)
static const double x2[5]
static const double x1[5]