class ROOT::Math::GSLRootFinder


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()
intIterate()
intIterations() const
const char*Name() const
doubleRoot() const
intSetFunction(const ROOT::Math::IGradFunction&, double)
intSetFunction(const ROOT::Math::IGenFunction& f, double xlow, double xup)
intSetFunction(ROOT::Math::GSLRootFinder::GSLFuncPointer f, void* params, double xlow, double xup)
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 update: root/mathmore:$Id: GSLRootFinder.h 21553 2007-12-21 10:55:46Z moneta $
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.