#include <yat/utility/RootFinderDerivative.h>
Wrapper class around GSL One-Dimensional Root-Finding
- Since
- New in yat 0.20
◆ RootFinderDerivative()
theplu::yat::utility::RootFinderDerivative::RootFinderDerivative |
( |
const gsl_root_fdfsolver_type * |
t | ) |
|
|
protected |
Constructor.
- Parameters
-
t | defines type of GSL minimizer |
◆ name()
const char* theplu::yat::utility::RootFinderDerivative::name |
( |
void |
| ) |
const |
- Returns
- name of the type of root finder
◆ operator()() [1/2]
Starting at guess
, find a value x such that func(x) = 0. Function keeps iterating until stopper
returns true
.
Requirement on FUNC:
- double operator(x)
- double derivative(x)
◆ operator()() [2/2]
template<class FUNC >
double theplu::yat::utility::RootFinderDerivative::operator() |
( |
FUNC & |
func, |
|
|
double |
guess, |
|
|
RootFinderDerivative::Stopper && |
stopper, |
|
|
unsigned int |
max_epochs |
|
) |
| |
Same as operator()(4) but do maximum max_epochs
iterations.
The documentation for this class was generated from the following file: