CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
NAEquationSolver< Function > Class Template Reference

#include <EquationSolver.h>

Public Types

enum  { DefaultMaxIter = 100 }
 

Public Member Functions

bool Brent (Function &theFunction)
 
double GetIntervalLowerLimit (void) const
 
double GetIntervalUpperLimit (void) const
 
int GetMaxIterations (void) const
 
double GetRoot (void) const
 
double GetTolerance (void) const
 
 NAEquationSolver ()
 
 NAEquationSolver (const int iterations, const double tol)
 
 NAEquationSolver (const NAEquationSolver &right)
 
bool operator!= (const NAEquationSolver &right) const
 
NAEquationSolveroperator= (const NAEquationSolver &right)
 
bool operator== (const NAEquationSolver &right) const
 
void SetIntervalLimits (const double Limit1, const double Limit2)
 
void SetMaxIterations (const int iterations)
 
void SetTolerance (const double epsilon)
 
 ~NAEquationSolver ()
 

Private Attributes

double fA
 
double fB
 
int fMaxIter
 
double fRoot
 
double fTolerance
 

Detailed Description

template<class Function>
class NAEquationSolver< Function >

Definition at line 18 of file EquationSolver.h.

Member Enumeration Documentation

template<class Function>
anonymous enum
Enumerator
DefaultMaxIter 

Definition at line 21 of file EquationSolver.h.

Constructor & Destructor Documentation

template<class Function>
NAEquationSolver< Function >::NAEquationSolver ( )
inline

Definition at line 35 of file EquationSolver.h.

template<class Function>
NAEquationSolver< Function >::NAEquationSolver ( const int  iterations,
const double  tol 
)
inline

Definition at line 38 of file EquationSolver.h.

38  :
39  fMaxIter(iterations), fTolerance(tol),
40  fA(0.0), fB(0.0), fRoot(0.0) {};
template<class Function >
NAEquationSolver< Function >::NAEquationSolver ( const NAEquationSolver< Function > &  right)
template<class Function>
NAEquationSolver< Function >::~NAEquationSolver ( )
inline

Definition at line 46 of file EquationSolver.h.

46 {};

Member Function Documentation

template<class Function>
bool NAEquationSolver< Function >::Brent ( Function &  theFunction)
template<class Function>
double NAEquationSolver< Function >::GetIntervalLowerLimit ( void  ) const
inline
template<class Function>
double NAEquationSolver< Function >::GetIntervalUpperLimit ( void  ) const
inline
template<class Function>
int NAEquationSolver< Function >::GetMaxIterations ( void  ) const
inline
template<class Function>
double NAEquationSolver< Function >::GetRoot ( void  ) const
inline
template<class Function>
double NAEquationSolver< Function >::GetTolerance ( void  ) const
inline
template<class Function >
bool NAEquationSolver< Function >::operator!= ( const NAEquationSolver< Function > &  right) const

Definition at line 40 of file EquationSolver.cc.

References operator==().

40  {
41  return !operator==(right);
42 }
bool operator==(const NAEquationSolver &right) const
template<class Function >
NAEquationSolver< Function > & NAEquationSolver< Function >::operator= ( const NAEquationSolver< Function > &  right)
template<class Function >
bool NAEquationSolver< Function >::operator== ( const NAEquationSolver< Function > &  right) const

Definition at line 34 of file EquationSolver.cc.

34  {
35  if (this == &right) return true;
36  else return false;
37 }
template<class Function>
void NAEquationSolver< Function >::SetIntervalLimits ( const double  Limit1,
const double  Limit2 
)
template<class Function>
void NAEquationSolver< Function >::SetMaxIterations ( const int  iterations)
inline

Definition at line 54 of file EquationSolver.h.

References NAEquationSolver< Function >::fMaxIter.

54 {fMaxIter=iterations;}
template<class Function>
void NAEquationSolver< Function >::SetTolerance ( const double  epsilon)
inline

Member Data Documentation

template<class Function>
double NAEquationSolver< Function >::fA
private
template<class Function>
double NAEquationSolver< Function >::fB
private
template<class Function>
int NAEquationSolver< Function >::fMaxIter
private
template<class Function>
double NAEquationSolver< Function >::fRoot
private

Definition at line 31 of file EquationSolver.h.

Referenced by NAEquationSolver< Function >::GetRoot().

template<class Function>
double NAEquationSolver< Function >::fTolerance
private