Skip to content
Snippets Groups Projects
Commit ae81300a authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

Merge branch 'cherry-pick-d3da6290' into 'releases/2.6'

Merge branch 'simplify-mathematical-constants' into 'master'

See merge request !508
parents 5a715f42 23aeae32
No related branches found
No related tags found
3 merge requests!586Centralize CI config for 2.6 release,!531Update CI for 2.6 release branch,!508Merge branch 'simplify-mathematical-constants' into 'master'
Pipeline #
......@@ -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
......
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