Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Koch
dune-common
Commits
68859991
Commit
68859991
authored
13 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
Basic documentation of math.hh
[[Imported from SVN: r6438]]
parent
9ed4e1c7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/common/math.hh
+16
-3
16 additions, 3 deletions
dune/common/math.hh
with
16 additions
and
3 deletions
dune/common/math.hh
+
16
−
3
View file @
68859991
...
...
@@ -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
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment