Geant4  10.00.p03
G4Solver< Function > Class Template Reference

#include <G4Solver.hh>

Public Types

enum  { DefaultMaxIter = 100 }
 

Public Member Functions

 G4Solver ()
 
 G4Solver (const G4int iterations, const G4double tol)
 
 G4Solver (const G4Solver &right)
 
 ~G4Solver ()
 
G4Solveroperator= (const G4Solver &right)
 
G4bool operator== (const G4Solver &right) const
 
G4bool operator!= (const G4Solver &right) const
 
G4int GetMaxIterations (void) const
 
void SetMaxIterations (const G4int iterations)
 
G4double GetTolerance (void) const
 
void SetTolerance (const G4double epsilon)
 
G4double GetIntervalLowerLimit (void) const
 
G4double GetIntervalUpperLimit (void) const
 
void SetIntervalLimits (const G4double Limit1, const G4double Limit2)
 
G4double GetRoot (void) const
 
G4bool Bisection (Function &theFunction)
 
G4bool RegulaFalsi (Function &theFunction)
 
G4bool Brent (Function &theFunction)
 
G4bool Crenshaw (Function &theFunction)
 

Private Attributes

G4int MaxIter
 
G4double tolerance
 
G4double a
 
G4double b
 
G4double root
 

Detailed Description

template<class Function>
class G4Solver< Function >

Definition at line 41 of file G4Solver.hh.

Member Enumeration Documentation

template<class Function>
anonymous enum
Enumerator
DefaultMaxIter 

Definition at line 44 of file G4Solver.hh.

Constructor & Destructor Documentation

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

Definition at line 47 of file G4Solver.hh.

template<class Function>
G4Solver< Function >::G4Solver ( const G4int  iterations,
const G4double  tol 
)
inline

Definition at line 50 of file G4Solver.hh.

template<class Function >
G4Solver< Function >::G4Solver ( const G4Solver< Function > &  right)
template<class Function>
G4Solver< Function >::~G4Solver ( )
inline

Definition at line 58 of file G4Solver.hh.

Member Function Documentation

template<class Function>
G4bool G4Solver< Function >::Bisection ( Function &  theFunction)
template<class Function>
G4bool G4Solver< Function >::Brent ( Function &  theFunction)

Referenced by G4StatMFMacroMultiplicity::CalcChemicalPotentialMu(), G4StatMFMacroChemicalPotential::CalcChemicalPotentialNu(), and G4StatMFMacroTemperature::CalcTemperature().

+ Here is the caller graph for this function:

template<class Function>
G4bool G4Solver< Function >::Crenshaw ( Function &  theFunction)

Referenced by G4StatMFMacroTemperature::CalcTemperature().

+ Here is the caller graph for this function:

template<class Function>
G4double G4Solver< Function >::GetIntervalLowerLimit ( void  ) const
inline

Definition at line 72 of file G4Solver.hh.

References G4Solver< Function >::a.

template<class Function>
G4double G4Solver< Function >::GetIntervalUpperLimit ( void  ) const
inline

Definition at line 73 of file G4Solver.hh.

References G4Solver< Function >::b.

template<class Function>
G4int G4Solver< Function >::GetMaxIterations ( void  ) const
inline

Definition at line 65 of file G4Solver.hh.

References G4Solver< Function >::MaxIter.

template<class Function>
G4double G4Solver< Function >::GetRoot ( void  ) const
inline

Definition at line 77 of file G4Solver.hh.

References G4Solver< Function >::root.

Referenced by G4StatMFMacroMultiplicity::CalcChemicalPotentialMu(), G4StatMFMacroChemicalPotential::CalcChemicalPotentialNu(), and G4StatMFMacroTemperature::CalcTemperature().

+ Here is the caller graph for this function:

template<class Function>
G4double G4Solver< Function >::GetTolerance ( void  ) const
inline

Definition at line 68 of file G4Solver.hh.

References G4Solver< Function >::tolerance.

template<class Function >
G4bool G4Solver< Function >::operator!= ( const G4Solver< Function > &  right) const

Definition at line 65 of file G4Solver.cc.

References operator==().

+ Here is the call graph for this function:

template<class Function >
G4Solver< Function > & G4Solver< Function >::operator= ( const G4Solver< Function > &  right)
template<class Function >
G4bool G4Solver< Function >::operator== ( const G4Solver< Function > &  right) const

Definition at line 58 of file G4Solver.cc.

template<class Function>
G4bool G4Solver< Function >::RegulaFalsi ( Function &  theFunction)
template<class Function>
void G4Solver< Function >::SetIntervalLimits ( const G4double  Limit1,
const G4double  Limit2 
)

Referenced by G4StatMFMacroMultiplicity::CalcChemicalPotentialMu(), G4StatMFMacroChemicalPotential::CalcChemicalPotentialNu(), and G4StatMFMacroTemperature::CalcTemperature().

+ Here is the caller graph for this function:

template<class Function>
void G4Solver< Function >::SetMaxIterations ( const G4int  iterations)
inline

Definition at line 66 of file G4Solver.hh.

References G4Solver< Function >::MaxIter.

template<class Function>
void G4Solver< Function >::SetTolerance ( const G4double  epsilon)
inline

Definition at line 69 of file G4Solver.hh.

References G4Solver< Function >::tolerance.

Member Data Documentation

template<class Function>
G4double G4Solver< Function >::a
private
template<class Function>
G4double G4Solver< Function >::b
private
template<class Function>
G4double G4Solver< Function >::root
private
template<class Function>
G4double G4Solver< Function >::tolerance
private

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