diff options
author | mathieu <mathieu.carriere3@gmail.com> | 2020-03-10 19:13:37 -0400 |
---|---|---|
committer | mathieu <mathieu.carriere3@gmail.com> | 2020-03-10 19:13:37 -0400 |
commit | 5a737eefc7abd690e8a174d2557d0157e77f5f4c (patch) | |
tree | 3f486a990033b4acfc4d9f51ced87c604ad0811a /src/python/include/Persistent_cohomology_interface.h | |
parent | fe754ca20cf942e2af186f14e5a3d24e23b6c80e (diff) |
new fixes
Diffstat (limited to 'src/python/include/Persistent_cohomology_interface.h')
-rw-r--r-- | src/python/include/Persistent_cohomology_interface.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/python/include/Persistent_cohomology_interface.h b/src/python/include/Persistent_cohomology_interface.h index e5accf50..defac88c 100644 --- a/src/python/include/Persistent_cohomology_interface.h +++ b/src/python/include/Persistent_cohomology_interface.h @@ -75,12 +75,13 @@ persistent_cohomology::Persistent_cohomology<FilteredComplex, persistent_cohomol int top_dimensional_coface(int splx){ if (stptr_->dimension(splx) == stptr_->dimension()){return splx;} else{ - for (auto v : stptr_->coboundary_simplex_range(splx)){ + for (auto v : stptr_->get_coboundary_of_a_cell(splx)){ if(stptr_->filtration(v) == stptr_->filtration(splx)){ return top_dimensional_coface(v); } } } + return splx; } std::vector<std::vector<int>> cofaces_of_cubical_persistence_pairs() { |