diff options
author | Arnur Nigmetov <nigmetov@tugraz.at> | 2020-01-14 16:17:43 +0100 |
---|---|---|
committer | Arnur Nigmetov <nigmetov@tugraz.at> | 2020-01-14 16:17:43 +0100 |
commit | ce3a42a493f63eb5b23e8a293bf995abaa1cb9e8 (patch) | |
tree | a14946cf930882753dedda34e45fd87addc69c9c /matching/include/phat/helpers | |
parent | 185378614231d1f4b04cf72ec785896cbdd43e39 (diff) |
Interim: matching distance for modules
1. Templatize DistanceCalculator (DiagramProvider)
2. Add BifiltrationProxy with the same interface as ModulePresentation
(dimension fixed).
3. Call Hera with relative error.
4. Add class ModulePresentation.
To-Do: reading module presentations from Rivet format.
Diffstat (limited to 'matching/include/phat/helpers')
-rw-r--r-- | matching/include/phat/helpers/misc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/matching/include/phat/helpers/misc.h b/matching/include/phat/helpers/misc.h index 3e1ed56..5a5c682 100644 --- a/matching/include/phat/helpers/misc.h +++ b/matching/include/phat/helpers/misc.h @@ -35,6 +35,7 @@ #include <cmath>
#include <cstdlib>
#include <iterator>
+#include <limits>
// VS2008 and below unfortunately do not support stdint.h
#if defined(_MSC_VER)&& _MSC_VER < 1600
@@ -55,6 +56,8 @@ namespace phat { typedef int64_t index;
typedef int8_t dimension;
typedef std::vector< index > column;
+
+ constexpr index k_infinity_index = std::numeric_limits<index>::max();
}
// OpenMP (proxy) functions
|