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
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
Core Modules
dune-common
Commits
ae81300a
There was a problem fetching the pipeline summary.
Commit
ae81300a
authored
6 years ago
by
Ansgar Burchardt
Browse files
Options
Downloads
Plain Diff
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
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!586
Centralize CI config for 2.6 release
,
!531
Update CI for 2.6 release branch
,
!508
Merge branch 'simplify-mathematical-constants' into 'master'
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/common/math.hh
+11
-39
11 additions, 39 deletions
dune/common/math.hh
with
11 additions
and
39 deletions
dune/common/math.hh
+
11
−
39
View file @
ae81300a
...
...
@@ -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
...
...
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