ROOT  6.06/09
Reference Guide
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ROOT::Math::GSLMultiRootSolver Class Reference

GSLMultiRootSolver, internal class for implementing GSL multi-root finders not using derivatives.

Definition at line 155 of file GSLMultiRootSolver.h.

Public Member Functions

 GSLMultiRootSolver (const gsl_multiroot_fsolver_type *type, int n)
 Constructor from type and simension of system (number of functions) More...
 
virtual ~GSLMultiRootSolver ()
 Destructor (no operations) More...
 
void CreateSolver (const gsl_multiroot_fsolver_type *type, unsigned int n)
 
virtual int SetSolver (const std::vector< ROOT::Math::IMultiGenFunction * > &funcVec, const double *x)
 set the solver parameters More...
 
virtual std::string Name () const
 return name More...
 
virtual int Iterate ()
 perform an iteration More...
 
virtual gsl_vector * GetRoot () const
 solution values at the current iteration More...
 
virtual gsl_vector * GetF () const
 return function values More...
 
virtual gsl_vector * GetDx () const
 return function steps More...
 
- Public Member Functions inherited from ROOT::Math::GSLMultiRootBaseSolver
virtual ~GSLMultiRootBaseSolver ()
 virtual Destructor More...
 
bool InitSolver (const std::vector< ROOT::Math::IMultiGenFunction * > &funcVec, const double *x)
 init the solver with function list and initial values More...
 
const doubleX () const
 solution values at the current iteration More...
 
const doubleFVal () const
 return function values More...
 
const doubleDx () const
 return function steps More...
 
int TestDelta (double absTol, double relTol) const
 test using abs and relative tolerance |dx| < absTol + relTol*|x| for every component More...
 
int TestResidual (double absTol) const
 test using abs tolerance Sum |f|_i < absTol More...
 

Private Member Functions

 GSLMultiRootSolver (const GSLMultiRootSolver &)
 Copy constructor. More...
 
GSLMultiRootSolveroperator= (const GSLMultiRootSolver &rhs)
 Assignment operator. More...
 

Private Attributes

GSLMultiRootFunctionWrapper fFunctions
 
gsl_multiroot_fsolver * fSolver
 
gsl_vector * fVec
 

#include </mnt/vdb/lsf/workspace/root-makedoc-v606/rootspi/rdoc/src/v6-06-00-patches/math/mathmore/src/GSLMultiRootSolver.h>

+ Inheritance diagram for ROOT::Math::GSLMultiRootSolver:
+ Collaboration diagram for ROOT::Math::GSLMultiRootSolver:

Constructor & Destructor Documentation

ROOT::Math::GSLMultiRootSolver::GSLMultiRootSolver ( const gsl_multiroot_fsolver_type *  type,
int  n 
)
inline

Constructor from type and simension of system (number of functions)

Definition at line 162 of file GSLMultiRootSolver.h.

virtual ROOT::Math::GSLMultiRootSolver::~GSLMultiRootSolver ( )
inlinevirtual

Destructor (no operations)

Definition at line 172 of file GSLMultiRootSolver.h.

ROOT::Math::GSLMultiRootSolver::GSLMultiRootSolver ( const GSLMultiRootSolver )
inlineprivate

Copy constructor.

Definition at line 183 of file GSLMultiRootSolver.h.

Member Function Documentation

void ROOT::Math::GSLMultiRootSolver::CreateSolver ( const gsl_multiroot_fsolver_type *  type,
unsigned int  n 
)
inline

Definition at line 197 of file GSLMultiRootSolver.h.

Referenced by GSLMultiRootSolver().

virtual gsl_vector* ROOT::Math::GSLMultiRootSolver::GetDx ( ) const
inlinevirtual

return function steps

Implements ROOT::Math::GSLMultiRootBaseSolver.

Definition at line 246 of file GSLMultiRootSolver.h.

virtual gsl_vector* ROOT::Math::GSLMultiRootSolver::GetF ( ) const
inlinevirtual

return function values

Implements ROOT::Math::GSLMultiRootBaseSolver.

Definition at line 240 of file GSLMultiRootSolver.h.

virtual gsl_vector* ROOT::Math::GSLMultiRootSolver::GetRoot ( ) const
inlinevirtual

solution values at the current iteration

Implements ROOT::Math::GSLMultiRootBaseSolver.

Definition at line 234 of file GSLMultiRootSolver.h.

virtual int ROOT::Math::GSLMultiRootSolver::Iterate ( )
inlinevirtual

perform an iteration

Implements ROOT::Math::GSLMultiRootBaseSolver.

Definition at line 228 of file GSLMultiRootSolver.h.

virtual std::string ROOT::Math::GSLMultiRootSolver::Name ( ) const
inlinevirtual

return name

Implements ROOT::Math::GSLMultiRootBaseSolver.

Definition at line 223 of file GSLMultiRootSolver.h.

GSLMultiRootSolver& ROOT::Math::GSLMultiRootSolver::operator= ( const GSLMultiRootSolver rhs)
inlineprivate

Assignment operator.

Definition at line 188 of file GSLMultiRootSolver.h.

virtual int ROOT::Math::GSLMultiRootSolver::SetSolver ( const std::vector< ROOT::Math::IMultiGenFunction * > &  funcVec,
const double x 
)
inlinevirtual

set the solver parameters

Implements ROOT::Math::GSLMultiRootBaseSolver.

Definition at line 207 of file GSLMultiRootSolver.h.

Member Data Documentation

GSLMultiRootFunctionWrapper ROOT::Math::GSLMultiRootSolver::fFunctions
private

Definition at line 254 of file GSLMultiRootSolver.h.

Referenced by SetSolver().

gsl_multiroot_fsolver* ROOT::Math::GSLMultiRootSolver::fSolver
private
gsl_vector* ROOT::Math::GSLMultiRootSolver::fVec
mutableprivate

Definition at line 257 of file GSLMultiRootSolver.h.

Referenced by SetSolver(), and ~GSLMultiRootSolver().


The documentation for this class was generated from the following file: