Skip to content
Snippets Groups Projects
Commit 31a6dbfc authored by René Fritze's avatar René Fritze
Browse files

[la] fix wrong type of eps passed into {pattern,pruned} methods and some ctors

parent d23326d3
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,8 @@ namespace FloatCmp {
template <class T, Style style = Style::defaultStyle>
struct DefaultEpsilon
{
static typename Dune::FloatCmp::EpsilonType<T>::Type value()
typedef typename Dune::FloatCmp::EpsilonType<T>::Type Type;
static Type value()
{
return Dune::FloatCmp::DefaultEpsilon<T, internal::ConvertStyle<style>::value>::value();
}
......@@ -43,7 +44,8 @@ struct DefaultEpsilon
template <class T, Style style>
struct DefaultEpsilon<std::complex<T>, style>
{
static typename Dune::FloatCmp::EpsilonType<T>::Type value()
typedef typename Dune::FloatCmp::EpsilonType<T>::Type Type;
static Type value()
{
return Dune::FloatCmp::DefaultEpsilon<T, internal::ConvertStyle<style>::value>::value();
}
......@@ -52,7 +54,8 @@ struct DefaultEpsilon<std::complex<T>, style>
template <class T>
struct DefaultEpsilon<T, Style::numpy>
{
static typename Dune::FloatCmp::EpsilonType<T>::Type value()
typedef typename Dune::FloatCmp::EpsilonType<T>::Type Type;
static Type value()
{
return Dune::FloatCmp::DefaultEpsilon<T, Dune::FloatCmp::relativeStrong>::value();
}
......@@ -61,7 +64,8 @@ struct DefaultEpsilon<T, Style::numpy>
template <class T>
struct DefaultEpsilon<std::complex<T>, Style::numpy>
{
static typename Dune::FloatCmp::EpsilonType<T>::Type value()
typedef typename Dune::FloatCmp::EpsilonType<T>::Type Type;
static Type value()
{
return Dune::FloatCmp::DefaultEpsilon<T, Dune::FloatCmp::relativeStrong>::value();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment