summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Bauer <mail@ulrich-bauer.org>2017-08-24 12:36:23 +0200
committerUlrich Bauer <mail@ulrich-bauer.org>2017-08-24 12:36:23 +0200
commit02e1d32f8c19a92b91dab3fc2520a6f4a98640f1 (patch)
tree26fabd66aaf0c20621946721a8598f3ad65232e7
parentfc6d3d4fbefe97022758ee64d78aa0c13a55caa2 (diff)
threshold for sparse distance matrix
-rw-r--r--ripser.cpp2
1 files changed, 1 insertions, 1 deletions
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<value_t>::max())
+ if (threshold == std::numeric_limits<value_t>::infinity())
ripser<compressed_lower_distance_matrix>(std::move(dist), dim_max, threshold, modulus)
.compute_barcodes();
else