diff options
author | Ulrich Bauer <mail@ulrich-bauer.org> | 2020-11-25 22:14:56 +0100 |
---|---|---|
committer | Ulrich Bauer <mail@ulrich-bauer.org> | 2020-11-25 22:14:56 +0100 |
commit | 513c6f06098a904761c61f685db690be474c94ba (patch) | |
tree | e94fc96cd5d96818bd4dbf2b70e81053f08e75de | |
parent | e532f5b3387b06953fc4bab020b8aa3d3f4cdfcb (diff) | |
parent | 320b8248566a3b9108aa5ac7e751ec40d48690ee (diff) |
Merge branch 'master' into apparent-pairs-new
* master:
cleanup
cleanup
# Conflicts:
# ripser.cpp
-rw-r--r-- | ripser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -849,7 +849,7 @@ public: template <> class ripser<sparse_distance_matrix>::simplex_coboundary_enumerator { index_t idx_below, idx_above, k; std::vector<index_t> vertices; - diameter_entry_t simplex; + const diameter_entry_t simplex; const coefficient_t modulus; const sparse_distance_matrix& dist; const binomial_coeff_table& binomial_coeff; @@ -864,6 +864,7 @@ public: simplex(_simplex), modulus(_parent.modulus), dist(_parent.dist), binomial_coeff(_parent.binomial_coeff) { _parent.get_simplex_vertices(idx_below, _dim, _parent.n, vertices.rbegin()); + for (auto v : vertices) { neighbor_it.push_back(dist.neighbors[v].rbegin()); neighbor_end.push_back(dist.neighbors[v].rend()); |