class ROOT::Math::GSLRootFinder: public ROOT::Math::IRootFinderMethod


     Base class for GSL Root-Finding algorithms for one dimensional functions which do not use function derivatives.
     For finding the roots users should not use this class directly but instantiate the template
     ROOT::Math::RootFinder class with the corresponding algorithms.
     For example the ROOT::Math::RootFinder<ROOT::Math::Roots::Brent> for using the Brent algorithm. See that class also
     for the documentation.
     See the GSL <A HREF="http://www.gnu.org/software/gsl/manual/html_node/Root-Bracketing-Algorithms.html"> online manual</A> for
     information on the GSL Root-Finding algorithms

     @ingroup RootFinders

Function Members (Methods)

public:
virtual~GSLRootFinder()
ROOT::Math::GSLRootFinderGSLRootFinder()
virtual intIterate()
virtual intIterations() const
virtual const char*Name() const
virtual doubleRoot() const
virtual intSetFunction(const ROOT::Math::IGradFunction&, double)
virtual intSetFunction(const ROOT::Math::IGenFunction& f, double xlow, double xup)
intSetFunction(ROOT::Math::GSLRootFinder::GSLFuncPointer f, void* params, double xlow, double xup)
virtual intSolve(int maxIter = 100, double absTol = 1E-3, double relTol = 1E-6)
protected:
voidFreeSolver()
voidSetSolver(ROOT::Math::GSLRootFSolver* s)
private:
ROOT::Math::GSLRootFinderGSLRootFinder(const ROOT::Math::GSLRootFinder&)
ROOT::Math::GSLRootFinder&operator=(const ROOT::Math::GSLRootFinder&)

Data Members

private:
ROOT::Math::GSLFunctionWrapper*fFunction
intfIter
doublefRoot
ROOT::Math::GSLRootFSolver*fS
boolfValidInterval
doublefXlow
doublefXup

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

GSLRootFinder(const ROOT::Math::GSLRootFinder& )
virtual ~GSLRootFinder()
GSLRootFinder(const ROOT::Math::GSLRootFinder& )
 usually copying is non trivial, so we make this unaccessible
int SetFunction(const ROOT::Math::IGradFunction& , double )
int SetFunction(const ROOT::Math::IGenFunction& f, double xlow, double xup)
int SetFunction(ROOT::Math::GSLRootFinder::GSLFuncPointer f, void* params, double xlow, double xup)
int Iterate()
double Root()
int Solve(int maxIter = 100, double absTol = 1E-3, double relTol = 1E-6)
double XLower() const;
double XUpper() const;
 Solve for roots
int Iterations()
const char * Name()
void SetSolver(ROOT::Math::GSLRootFSolver* s)
void FreeSolver()

Author: L. Moneta, A. Zsenei 08/2005
Last change: root/mathmore:$Id: GSLRootFinder.h 22522 2008-03-07 16:07:51Z moneta $
Last generated: 2008-06-25 08:29
Copyright (c) 2004 ROOT Foundation, CERN/PH-SFT *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.