Skip to content

Commit 5d41b60

Browse files
committed
use sparse distance matrix for point clouds when threshold is specified
1 parent 690f6ad commit 5d41b60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ripser.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,7 @@ int main(int argc, char** argv) {
12391239

12401240
ripser<sparse_distance_matrix>(std::move(dist), dim_max, threshold, ratio, modulus)
12411241
.compute_barcodes();
1242-
} else if (format == POINT_CLOUD) {
1242+
} else if (format == POINT_CLOUD && threshold < std::numeric_limits<value_t>::max()) {
12431243
sparse_distance_matrix dist(read_point_cloud(filename ? file_stream : std::cin), threshold);
12441244
ripser<sparse_distance_matrix>(std::move(dist), dim_max, threshold, ratio, modulus)
12451245
.compute_barcodes();

0 commit comments

Comments
 (0)