Class min_de_base (o2scl)¶
-
template<class
func_t
, classdfunc_t
= func_t>
classo2scl
::
min_de_base
: public o2scl::min_base<func_t, func_t>¶ One-dimensional minimization using derivatives [abstract base].
At the moment there are no minimizers of this type implemented in .
- Idea for Future:
Create a version of o2scl::mmin_conf which implements a minimizer with this interface.
Public Functions
-
min_de_base
()¶
-
~min_de_base
()¶
-
int
min
(double &x, double &fmin, func_t &func) = 0¶ Calculate the minimum
min
offunc
w.r.t ‘x’.If this is not overloaded, it attempts to bracket the minimum using bracket() and then calls min_bkt() with the newly bracketed minimum.
-
int
min_bkt
(double &x2, double x1, double x3, double &fmin, func_t &func) = 0¶ Calculate the minimum
min
offunc
with x2 bracketed between x1 and x3.If this is not overloaded, it ignores the bracket and calls min().
-
int
min_de
(double &x, double &fmin, func_t &func, dfunc_t &df) = 0¶ Calculate the minimum
min
offunc
with derivativedfunc
w.r.t ‘x’.If this is not overloaded, it attempts to bracket the minimum using bracket() and then calls min_bkt_de() with the newly bracketed minimum.
-
const char *
type
()¶ Return string denoting type (“min_de”)