diff --git a/dune/common/math.hh b/dune/common/math.hh index ae643798aea69d4ca2953ecb10a87ab67c30c09b..4fc5660bb3aa2c0c23e5c0cc3389c7dedfd0b93a 100644 --- a/dune/common/math.hh +++ b/dune/common/math.hh @@ -13,24 +13,14 @@ namespace Dune { - /** - \brief Provides commonly used mathematical constants. - - a struct that is specialized for types repesenting real or complex - numbers. I provides commonly used mathematical constants with the - required accuary for the specified type. - */ - template< class Field > - struct MathematicalConstants; - /** \brief Standard implementation of MathematicalConstants. This implementation will work with all built-in floating point types. It provides - * e as std::exp(1.0) - * pi as std::acos(-1.0) + * e as exp(1.0) + * pi as acos(-1.0) */ template< class T > @@ -52,35 +42,17 @@ namespace Dune }; -#ifndef DOXYGEN - // MathematicalConstants for float - // ------------------------------- - - template<> - struct MathematicalConstants< float > - : public StandardMathematicalConstants< float > - {}; - - - - // MathematicalConstants for double - // -------------------------------- - - template<> - struct MathematicalConstants< double > - : public StandardMathematicalConstants< double > - {}; - - - - // MathematicalConstants for long double - // ------------------------------------- + /** + \brief Provides commonly used mathematical constants. - template<> - struct MathematicalConstants< long double > - : public StandardMathematicalConstants< long double > + a struct that is specialized for types repesenting real or complex + numbers. It provides commonly used mathematical constants with the + required accuary for the specified type. + */ + template< class Field > + struct MathematicalConstants + : public StandardMathematicalConstants<Field> {}; -#endif // DOXYGEN //! Calculates the factorial of m at compile time