diff options
author | Ulrich Bauer <mail@ulrich-bauer.org> | 2021-03-23 09:45:02 +0100 |
---|---|---|
committer | Ulrich Bauer <mail@ulrich-bauer.org> | 2021-03-23 09:45:02 +0100 |
commit | 5d41b60ecb2b35a67971424df4afeff0fa5b022b (patch) | |
tree | 6dc8754ac0a45886225557ff59d803c69b7074ae | |
parent | 690f6adfaa4a9c099beeadbd6170958b453ca23c (diff) |
use sparse distance matrix for point clouds when threshold is specified
-rw-r--r-- | ripser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1239,7 +1239,7 @@ int main(int argc, char** argv) { ripser<sparse_distance_matrix>(std::move(dist), dim_max, threshold, ratio, modulus) .compute_barcodes(); - } else if (format == POINT_CLOUD) { + } else if (format == POINT_CLOUD && threshold < std::numeric_limits<value_t>::max()) { sparse_distance_matrix dist(read_point_cloud(filename ? file_stream : std::cin), threshold); ripser<sparse_distance_matrix>(std::move(dist), dim_max, threshold, ratio, modulus) .compute_barcodes(); |