diff --git a/dune/common/math.hh b/dune/common/math.hh index e3a1cd47c66beb6bef5dcb3b35f7dfa96a5164b6..169c8593759a59156adb46202a1dbad7f2cd0f28 100644 --- a/dune/common/math.hh +++ b/dune/common/math.hh @@ -16,24 +16,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 > @@ -55,35 +45,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