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-02-18 15:02:39 +0100
commitee65fce990b1dc683e1220c18c5f404a82373e55 (patch)
tree6c4aabba39f4f302024d17ff088d14653a12563e /matching/include/phat/helpers/misc.h
parent6942d80c4d49239bca9cace9833aa74aee11ddcb (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