31 #ifndef ROOT_Math_GSLRootFinder 32 #define ROOT_Math_GSLRootFinder 48 class GSLFunctionWrapper;
87 #if defined(__MAKECINT__) || defined(G__DICTIONARY) 89 std::cerr <<
"GSLRootFinder - Error : this method must be used with a Root Finder algorithm using derivatives" << std::endl;
111 bool Solve(
int maxIter = 100,
double absTol = 1
E-8,
double relTol = 1
E-10);
121 const char *
Name()
const;
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
int Iterations() const
Return number of iterations.
Namespace for new ROOT classes and functions.
const char * Name() const
double GSLRootFinder::XLower() const { return fXlow; }
Root-Finder implementation class using GSL.
GSLRootFinder & operator=(const GSLRootFinder &)
Base class for GSL Root-Finding algorithms for one dimensional functions which do not use function de...
Interface (abstract class) for one-dimensional functions providing a gradient calculation.
double(* GSLFuncPointer)(double, void *)
Interface for finding function roots of one-dimensional functions.
bool Solve(int maxIter=100, double absTol=1E-8, double relTol=1E-10)
Find the root.
int Iterate()
This method is implemented only by the GSLRootFinder and GSLRootFinderDeriv classes and will return a...
GSLFunctionWrapper * fFunction
constexpr Double_t E()
Base of natural log: .
double Root() const
Returns the previously calculated root.
virtual bool SetFunction(const ROOT::Math::IGradFunction &, double)
Sets the function for algorithms using derivatives.
Namespace for new Math classes and functions.
void SetSolver(GSLRootFSolver *s)
Wrapper class to the gsl_function C structure.
int Status() const
Return the status of last root finding.
bool SetFunction(const IGenFunction &f, double xlow, double xup)
Sets the function for the rest of the algorithms.