Tempus Version of the Day
Time Integration
Loading...
Searching...
No Matches
Tempus_NumericalUtils.hpp File Reference
#include "Teuchos_ScalarTraits.hpp"
#include "Tempus_config.hpp"

Go to the source code of this file.

Namespaces

namespace  Tempus

Functions

template<typename Scalar>
const Scalar Tempus::numericalTol ()
 Numerical Tolerance (approx. max. significant digits minus two).
template<typename Scalar>
bool Tempus::approxZero (Scalar value, Scalar tol=Teuchos::ScalarTraits< Scalar >::sfmin())
 Test if value is approximately zero within tolerance.
template<typename Scalar>
bool Tempus::approxEqualAbsTol (Scalar a, Scalar b, Scalar absTol)
 Test if values are approximately equal within the absolute tolerance.
template<typename Scalar>
bool Tempus::approxEqual (Scalar a, Scalar b, Scalar relTol=numericalTol< Scalar >())
 Test if values are approximately equal within the relative tolerance.
template<typename Scalar>
bool Tempus::approxEqualScale (Scalar a, Scalar b, Scalar scale, Scalar relTol=numericalTol< Scalar >())
 Test if values are approximately equal within the relative tolerance given a scale.