summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Bauer <mail@ulrich-bauer.org>2016-09-15 20:41:12 +0200
committerUlrich Bauer <mail@ulrich-bauer.org>2016-09-15 20:41:12 +0200
commit3a1ff214fa33cba713f5a00ee13bfd0cebb0865f (patch)
treedd64c59c90785b1e297e3264c974f6e29bb718eb
parent3f9fc342fef7a898b9242d39bd14ff4122c4036b (diff)
removed unneccesary check in file reader
-rw-r--r--ripser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ripser.cpp b/ripser.cpp
index 5568f32..9d8aa04 100644
--- a/ripser.cpp
+++ b/ripser.cpp
@@ -715,7 +715,7 @@ compressed_lower_distance_matrix read_point_cloud(std::istream& input_stream) {
for (int i = 0; i < n; ++i)
for (int j = 0; j < i; ++j)
- if (i > j) distances.push_back(eucl_dist(i, j));
+ distances.push_back(eucl_dist(i, j));
return compressed_lower_distance_matrix(std::move(distances));
}