16 typedef function<Real (Real)>
Func;
23 Minimize(
Real tol = Real_::zeroTol,
int levelMax = 30,
int bracketMax = 30)
24 : _tol(tol), _levelMax(levelMax), _bracketMax(bracketMax) {}
64 extern template class Minimize<Float>;
65 extern template class Minimize<Double>;
66 extern template class Minimize<Quad>;
Algebra.
Definition: Alge.h:13
Find a local minimum of a 1-dimensional function using "Brent's method" – bisection and inverse quad...
Definition: Minimize.h:11
tuple< Real, Real > calc(const Func &func, Real min, Real max, Real init)
Find the minimum of a function within bounds [min,max] using init as an initial guess.
Definition: Minimize.cpp:9
function< Real(Real)> Func
Definition: Minimize.h:16
Minimize(Real tol=Real_::zeroTol, int levelMax=30, int bracketMax=30)
Definition: Minimize.h:23
float Real
Real number type. See Real_ for real number operations and constants.
Definition: Real.h:21
Global Honeycomb namespace.