Loading...
Searching...
No Matches
float_cmp.cc File Reference
`#include "float_cmp.hh"`
`#include <vector>`
`#include <limits>`
`#include <algorithm>`
`#include <cstdlib>`
`#include <dune/common/fvector.hh>`

Go to the source code of this file.

## Classes

struct | Dune::FloatCmp::EpsilonType< T >
| Mapping of value type to epsilon type. More...
struct | Dune::FloatCmp::EpsilonType< std::vector< T, A > >
| Specialization of EpsilonType for std::vector. More...
struct | Dune::FloatCmp::EpsilonType< FieldVector< T, n > >
| Specialization of EpsilonType for Dune::FieldVector. More...
struct | Dune::FloatCmp::DefaultEpsilon< T, relativeWeak >
struct | Dune::FloatCmp::DefaultEpsilon< T, relativeStrong >
struct | Dune::FloatCmp::DefaultEpsilon< T, absolute >

## Namespaces

namespace | Dune
| Dune namespace
namespace | Dune::FloatCmp
| Various ways to compare floating-point numbers.

## Functions

template<class T, CmpStyle style>
bool | Dune::FloatCmp::eq (const T &first, const T &second, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, style >::value())
| test for equality using epsilon
template<class T, CmpStyle style>
bool | Dune::FloatCmp::ne (const T &first, const T &second, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, style >::value())
| test for inequality using epsilon
template<class T, CmpStyle style>
bool | Dune::FloatCmp::gt (const T &first, const T &second, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, style >::value())
| test if first greater than second
template<class T, CmpStyle style>
bool | Dune::FloatCmp::lt (const T &first, const T &second, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, style >::value())
| test if first lesser than second
template<class T, CmpStyle style>
bool | Dune::FloatCmp::ge (const T &first, const T &second, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, style >::value())
| test if first greater or equal second
template<class T, CmpStyle style>
bool | Dune::FloatCmp::le (const T &first, const T &second, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, style >::value())
| test if first lesser or equal second
template<class T>
bool | Dune::FloatCmp::eq (const T &first, const T &second, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, defaultCmpStyle >::value())
template<class T>
bool | Dune::FloatCmp::ne (const T &first, const T &second, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, defaultCmpStyle >::value())
template<class T>
bool | Dune::FloatCmp::gt (const T &first, const T &second, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, defaultCmpStyle >::value())
template<class T>
bool | Dune::FloatCmp::lt (const T &first, const T &second, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, defaultCmpStyle >::value())
template<class T>
bool | Dune::FloatCmp::ge (const T &first, const T &second, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, defaultCmpStyle >::value())
template<class T>
bool | Dune::FloatCmp::le (const T &first, const T &second, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, defaultCmpStyle >::value())
template<class I, class T, CmpStyle cstyle, RoundingStyle rstyle>
I | Dune::FloatCmp::round (const T &val, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, cstyle >::value())
| round using epsilon
template<class I, class T, CmpStyle cstyle>
I | Dune::FloatCmp::round (const T &val, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, cstyle >::value())
template<class I, class T, RoundingStyle rstyle>
I | Dune::FloatCmp::round (const T &val, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, defaultCmpStyle >::value())
template<class I, class T>
I | Dune::FloatCmp::round (const T &val, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, defaultCmpStyle >::value())
template<class I, class T, CmpStyle cstyle, RoundingStyle rstyle>
I | Dune::FloatCmp::trunc (const T &val, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, cstyle >::value())
| truncate using epsilon
template<class I, class T, CmpStyle cstyle>
I | Dune::FloatCmp::trunc (const T &val, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, cstyle >::value())
template<class I, class T, RoundingStyle rstyle>
I | Dune::FloatCmp::trunc (const T &val, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, defaultCmpStyle >::value())
template<class I, class T>
I | Dune::FloatCmp::trunc (const T &val, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, defaultCmpStyle >::value())