CMS 3D CMS Logo

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 20 of file EquationSolver.h.

Constructor & Destructor Documentation

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

Definition at line 36 of file EquationSolver.h.

References NAEquationSolver< Function >::NAEquationSolver().

37  : fMaxIter(iterations), fTolerance(tol), 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

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 42 of file EquationSolver.cc.

References operator==().

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

42  {
43  return !operator==(right);
44 }
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.

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

34  {
35  if (this == &right)
36  return true;
37  else
38  return false;
39 }
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 51 of file EquationSolver.h.

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

Definition at line 54 of file EquationSolver.h.

References geometryDiff::epsilon.

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

Definition at line 24 of file EquationSolver.h.

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

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

Definition at line 30 of file EquationSolver.h.

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

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

Definition at line 25 of file EquationSolver.h.

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