From 02e1d32f8c19a92b91dab3fc2520a6f4a98640f1 Mon Sep 17 00:00:00 2001 From: Ulrich Bauer Date: Thu, 24 Aug 2017 12:36:23 +0200 Subject: threshold for sparse distance matrix --- ripser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ripser.cpp b/ripser.cpp index 2f5a01a..74f9224 100644 --- a/ripser.cpp +++ b/ripser.cpp @@ -1079,7 +1079,7 @@ int main(int argc, char** argv) { std::cout << "value range: [" << min << "," << max << "]" << std::endl; - if (threshold == std::numeric_limits::max()) + if (threshold == std::numeric_limits::infinity()) ripser(std::move(dist), dim_max, threshold, modulus) .compute_barcodes(); else -- cgit v1.2.3