Thermal-FIST  1.3
Package for hadron resonance gas model applications
Public Member Functions | Protected Attributes | List of all members
thermalfist::Broyden::BroydenSolutionCriterium Class Reference

Sub-class where it is determined whether the required accuracy is achieved in the Broyden's method. More...

#include <Broyden.h>

Public Member Functions

 BroydenSolutionCriterium (double maximum_error=TOL)
 
virtual ~BroydenSolutionCriterium ()
 Destroy the BroydenSolutionCriterium object. More...
 
virtual bool IsSolved (const std::vector< double > &x, const std::vector< double > &f, const std::vector< double > &xdelta=std::vector< double >()) const
 

Protected Attributes

double m_MaximumError
 

Detailed Description

Sub-class where it is determined whether the required accuracy is achieved in the Broyden's method.

By default, the desired accuracy is achieved if all of the equations deviate from zero by less than the specified accuracy. A derived class may implement a different criterium.

Definition at line 144 of file Broyden.h.

Constructor & Destructor Documentation

thermalfist::Broyden::BroydenSolutionCriterium::BroydenSolutionCriterium ( double  maximum_error = TOL)
inline

Construct a new BroydenSolutionCriterium object

Parameters
maximum_errorThe maximum deviation from zero of any of the l.h.s. of all the equations for the desired accuracy to be considered achieved.

Definition at line 153 of file Broyden.h.

virtual thermalfist::Broyden::BroydenSolutionCriterium::~BroydenSolutionCriterium ( )
inlinevirtual

Destroy the BroydenSolutionCriterium object.

Definition at line 159 of file Broyden.h.

Member Function Documentation

bool thermalfist::Broyden::BroydenSolutionCriterium::IsSolved ( const std::vector< double > &  x,
const std::vector< double > &  f,
const std::vector< double > &  xdelta = std::vector<double>() 
) const
virtual

Determines whether the solution with the desired accuracy has been achieved.

Parameters
xValues of the variables.
fValues of the l.h.s. of all the equations
xdeltaDifference in variables' values between current and previous iterations.
Returns
true The desired accuracy is achieved.
false The desired accuracy not achieved.

Definition at line 176 of file Broyden.cpp.

Member Data Documentation

double thermalfist::Broyden::BroydenSolutionCriterium::m_MaximumError
protected

The maximum deviation from zero of any of the l.h.s. of all the equations for the desired accuracy to be considered achieved.

Definition at line 179 of file Broyden.h.


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