Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mglisse committed Jul 28, 2024
1 parent ebba798 commit ea3181c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/python/gudhi/_ripser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ py::list sparse(py::array_t<V> is_, py::array_t<V> js_, py::array_t<T> fs_, int
neighbors[is(e)].emplace_back(js(e), fs(e));
neighbors[js(e)].emplace_back(is(e), fs(e));
}
// We could easily parallelize this loop, but it is unlikely to be worth it.
for (size_t i = 0; i < neighbors.size(); ++i)
std::sort(neighbors[i].begin(), neighbors[i].end());
Dist dist(std::move(neighbors));
Expand Down

0 comments on commit ea3181c

Please sign in to comment.