31 #ifndef ROOT_Math_GSL_RootFinderDeriv 32 #define ROOT_Math_GSL_RootFinderDeriv 35 #ifndef ROOT_Math_GSLFunctionAdapter 39 #ifndef ROOT_Math_IFunctionfwd 42 #ifndef ROOT_Math_IFunction 46 #ifndef ROOT_Math_IRootFinderMethod 56 class GSLRootFdFSolver;
57 class GSLFunctionDerivWrapper;
97 #if defined(__MAKECINT__) || defined(G__DICTIONARY) 99 std::cerr <<
"GSLRootFinderDeriv - Error : Algorithm requirs derivatives" << std::endl;
122 bool Solve(
int maxIter = 100,
double absTol = 1
E-8,
double relTol = 1
E-10);
132 const char *
Name()
const;
int Iterate()
iterate (return GSL_SUCCESS in case of successful iteration)
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
int Status() const
Return the status of last root finding.
bool Solve(int maxIter=100, double absTol=1E-8, double relTol=1E-10)
Find the root (return false if failed)
double Root() const
Returns the previously calculated root.
class to wrap a gsl_function_fdf (with derivatives)
Interface (abstract class) for one-dimensional functions providing a gradient calculation.
GSLFunctionDerivWrapper * fFunction
void SetSolver(GSLRootFdFSolver *s)
Interface for finding function roots of one-dimensional functions.
double(* GSLFuncPointer)(double, void *)
bool SetFunction(const IGradFunction &f, double xstart)
Sets the function for algorithms using derivatives.
const char * Name() const
Return name of root finder algorithm.
Class for adapting any C++ functor class to C function pointers used by GSL.
GSLRootFinderDeriv & operator=(const GSLRootFinderDeriv &)
Root-Finder with derivatives implementation class using GSL.
virtual bool SetFunction(const ROOT::Math::IGradFunction &, double)
Sets the function for algorithms using derivatives.
Base class for GSL Root-Finding algorithms for one dimensional functions which use function derivativ...
Namespace for new Math classes and functions.
void(* GSLFdFPointer)(double, void *, double *, double *)
typedef void((*Func_t)())
int Iterations() const
Return number of iterations.
virtual ~GSLRootFinderDeriv()