Thermal-FIST
1.3
Package for hadron resonance gas model applications
|
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 |
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.
|
inline |
Construct a new BroydenSolutionCriterium object
maximum_error | The maximum deviation from zero of any of the l.h.s. of all the equations for the desired accuracy to be considered achieved. |
|
inlinevirtual |
Destroy the BroydenSolutionCriterium object.
|
virtual |
Determines whether the solution with the desired accuracy has been achieved.
x | Values of the variables. |
f | Values of the l.h.s. of all the equations |
xdelta | Difference in variables' values between current and previous iterations. |
Definition at line 176 of file Broyden.cpp.
|
protected |