summaryrefslogtreecommitdiff
path: root/src/Persistence_representations
diff options
context:
space:
mode:
Diffstat (limited to 'src/Persistence_representations')
-rw-r--r--src/Persistence_representations/include/gudhi/common_persistence_representations.h3
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;
}