diff options
author | mcarrier <mcarrier@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2018-05-03 15:54:01 +0000 |
---|---|---|
committer | mcarrier <mcarrier@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2018-05-03 15:54:01 +0000 |
commit | b2f3d32845b9e3dac752311fbd3b750d8b6ba030 (patch) | |
tree | f2a1d094809108a6de5269372d0d616fd295f324 /src/Persistence_representations/include/gudhi/common_persistence_representations.h | |
parent | 4ed2c5e0d99a48d242deb3318d01731cd21fd1d0 (diff) |
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/kernels@3412 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 612ea7ce6d4d5d743e606f9d7b443e21b25d8034
Diffstat (limited to 'src/Persistence_representations/include/gudhi/common_persistence_representations.h')
-rw-r--r-- | src/Persistence_representations/include/gudhi/common_persistence_representations.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/Persistence_representations/include/gudhi/common_persistence_representations.h b/src/Persistence_representations/include/gudhi/common_persistence_representations.h index 884fce58..1960e370 100644 --- a/src/Persistence_representations/include/gudhi/common_persistence_representations.h +++ b/src/Persistence_representations/include/gudhi/common_persistence_representations.h @@ -28,6 +28,15 @@ #include <cmath> #include <boost/math/constants/constants.hpp> + + +namespace Gudhi { +namespace Persistence_representations { +// this file contain an implementation of some common procedures used in Persistence_representations. + +static constexpr double pi = boost::math::constants::pi<double>(); + + /** * In this module, we use the name Persistence_diagram for the representation of a diagram in a vector of pairs of two double. */ @@ -37,13 +46,6 @@ using Persistence_diagram = std::vector<std::pair<double,double> >; * In this module, we use the name Weight for the representation of a function taking a pair of two double and returning a double. */ using Weight = std::function<double (std::pair<double,double>) >; - -namespace Gudhi { -namespace Persistence_representations { -// this file contain an implementation of some common procedures used in Persistence_representations. - -static constexpr double pi = boost::math::constants::pi<double>(); - // double epsi = std::numeric_limits<double>::epsilon(); double epsi = 0.000005; |