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;
104 double Root()
const override;
111 bool Solve(
int maxIter = 100,
double absTol = 1E-8,
double relTol = 1E-10)
override;
121 const char *
Name()
const override;
Wrapper class to the gsl_function C structure.
Root-Finder implementation class using GSL.
Base class for GSL Root-Finding algorithms for one dimensional functions which do not use function de...
double(* GSLFuncPointer)(double, void *)
const char * Name() const override
double GSLRootFinder::XLower() const { return fXlow; }
GSLFunctionWrapper * fFunction
int Status() const override
Return the status of last root finding.
int Iterate() override
This method is implemented only by the GSLRootFinder and GSLRootFinderDeriv classes and will return a...
~GSLRootFinder() override
void SetSolver(GSLRootFSolver *s)
int Iterations() const override
Return number of iterations.
GSLRootFinder & operator=(const GSLRootFinder &)
double Root() const override
Returns the previously calculated root.
bool Solve(int maxIter=100, double absTol=1E-8, double relTol=1E-10) override
Find the root.
bool SetFunction(const IGenFunction &f, double xlow, double xup) override
Sets the function for the rest of the algorithms.
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
Interface (abstract class) for one-dimensional functions providing a gradient calculation.
Interface for finding function roots of one-dimensional functions.
virtual bool SetFunction(const ROOT::Math::IGradFunction &, double)
Sets the function for algorithms using derivatives.
Namespace for new Math classes and functions.
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.