diff options
author | Ulrich Bauer <mail@ulrich-bauer.org> | 2020-02-20 10:31:43 +0100 |
---|---|---|
committer | Ulrich Bauer <mail@ulrich-bauer.org> | 2020-02-20 10:31:43 +0100 |
commit | e81a4dfd61cabdc6b52cca542c39fe16ac6c27f8 (patch) | |
tree | 799194ccdca22f0cca836c3b09c370ce4ea14a6d | |
parent | 5e842697f7204f121a479f7b8f445dbe4dbe5f63 (diff) |
disable emergent pairs
-rw-r--r-- | ripser.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -643,7 +643,7 @@ public: diameter_entry_t init_coboundary_and_get_pivot(const diameter_entry_t simplex, Column& working_coboundary, const index_t& dim, entry_hash_map& pivot_column_index) { - bool check_for_emergent_pair = true; + bool check_for_emergent_pair = false; cofacet_entries.clear(); simplex_coboundary_enumerator cofacets(simplex, dim, *this); while (cofacets.has_next()) { @@ -713,12 +713,10 @@ public: diameter_entry_t pivot = init_coboundary_and_get_pivot( column_to_reduce, working_coboundary, dim, pivot_column_index); - if (working_coboundary.size() == 0) { - - auto check = get_apparent_facet(pivot, dim + 1); - if ((get_index(check) != -1) && (get_index(column_to_reduce) != get_index(check))) - std::cerr << "pivot mismatch " << get_index(column_to_reduce) << std::endl; - + auto check = get_apparent_facet(pivot, dim + 1); + if ((get_index(check) != -1) && (get_index(column_to_reduce) == get_index(check))) { + + pivot_column_index.insert({get_entry(pivot), index_column_to_reduce}); continue; |