summaryrefslogtreecommitdiff
path: root/matching/include/phat/helpers/misc.h
diff options
context:
space:
mode:
authorArnur Nigmetov <nigmetov@tugraz.at>2020-01-14 16:17:43 +0100
committerArnur Nigmetov <nigmetov@tugraz.at>2020-01-14 16:17:43 +0100
commitce3a42a493f63eb5b23e8a293bf995abaa1cb9e8 (patch)
treea14946cf930882753dedda34e45fd87addc69c9c /matching/include/phat/helpers/misc.h
parent185378614231d1f4b04cf72ec785896cbdd43e39 (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/misc.h')
-rw-r--r--matching/include/phat/helpers/misc.h3
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