diff options
author | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-06-02 14:32:19 +0000 |
---|---|---|
committer | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-06-02 14:32:19 +0000 |
commit | 32d5cb0aacdb6b6532a195a0c4dc82c55868bc55 (patch) | |
tree | 61ea68df14ccbdeb8377c84da936a992367fe4da /src/Persistence_representations/include/gudhi/common_persistence_representations.h | |
parent | 12205e50480035a555ea68b71239fd83feef3226 (diff) |
use std::fabs. Compilation issue on Fedora25
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/persistence_representation_integration@2505 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: d0e3e91bea107a8f392f1d57462d489df01fb98b
Diffstat (limited to 'src/Persistence_representations/include/gudhi/common_persistence_representations.h')
-rw-r--r-- | src/Persistence_representations/include/gudhi/common_persistence_representations.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Persistence_representations/include/gudhi/common_persistence_representations.h b/src/Persistence_representations/include/gudhi/common_persistence_representations.h index 61a3274d..44e125a7 100644 --- a/src/Persistence_representations/include/gudhi/common_persistence_representations.h +++ b/src/Persistence_representations/include/gudhi/common_persistence_representations.h @@ -25,6 +25,7 @@ #include <utility> #include <string> +#include <cmath> namespace Gudhi { namespace Persistence_representations { @@ -39,7 +40,7 @@ double epsi = 0.000005; * the top of the file. Setting up the epsi gives the user a tolerance on what should be consider equal. **/ inline bool almost_equal(double a, double b) { - if (fabs(a - b) < epsi) return true; + if (std::fabs(a - b) < epsi) return true; return false; } |