herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
matchbox::gsl::bisection_root_solver< Function, MaxIterations > Struct Template Reference

wrapper araound the bisection root solver More...

#include <gsl.h>

Public Member Functions

 bisection_root_solver (const Function &thef)
 constructor – allocates the solver
 
 ~bisection_root_solver ()
 destructor – frees the solver
 
double solve (std::pair< double, double > interval, double precision=.000001)
 solve for root given initial interval
 

Public Attributes

Function f
 function object representing the equation to be solved
 
gsl_root_fsolver * s
 the gsl solver used
 

Detailed Description

template<class Function, unsigned long MaxIterations>
struct matchbox::gsl::bisection_root_solver< Function, MaxIterations >

wrapper araound the bisection root solver

Definition at line 23 of file gsl.h.

Constructor & Destructor Documentation

◆ bisection_root_solver()

template<class Function , unsigned long MaxIterations>
matchbox::gsl::bisection_root_solver< Function, MaxIterations >::bisection_root_solver ( const Function &  thef)
inline

constructor – allocates the solver

Definition at line 26 of file gsl.h.

References matchbox::gsl::bisection_root_solver< Function, MaxIterations >::s.

◆ ~bisection_root_solver()

template<class Function , unsigned long MaxIterations>
matchbox::gsl::bisection_root_solver< Function, MaxIterations >::~bisection_root_solver ( )
inline

destructor – frees the solver

Definition at line 31 of file gsl.h.

References matchbox::gsl::bisection_root_solver< Function, MaxIterations >::s.

Member Data Documentation

◆ f

template<class Function , unsigned long MaxIterations>
Function matchbox::gsl::bisection_root_solver< Function, MaxIterations >::f

function object representing the equation to be solved

Definition at line 39 of file gsl.h.

◆ s

template<class Function , unsigned long MaxIterations>
gsl_root_fsolver* matchbox::gsl::bisection_root_solver< Function, MaxIterations >::s

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