Skip to content
Snippets Groups Projects
Commit 68859991 authored by Christian Engwer's avatar Christian Engwer
Browse files

Basic documentation of math.hh

[[Imported from SVN: r6438]]
parent 9ed4e1c7
No related branches found
No related tags found
No related merge requests found
......@@ -8,14 +8,26 @@
namespace Dune
{
/**
\brief Provides commonly used mathematical constants.
a struct that is specilized 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 build in floating point
types. It provides
// StandardMathematicalConstants
// -----------------------------
* e as std::exp(1.0)
* pi as std::acos(-1.0)
*/
template< class T >
struct StandardMathematicalConstants
{
......@@ -33,7 +45,7 @@ namespace Dune
};
#ifndef DOXYGEN
// MathematicalConstants for float
// -------------------------------
......@@ -61,6 +73,7 @@ namespace Dune
struct MathematicalConstants< long double >
: public StandardMathematicalConstants< long double >
{};
#endif // DOXYGEN
}
......
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