Skip to content

Commit 2a173d0

Browse files
authored
Merge pull request #132 from ulupo/prevent_simplex_assembly_last_dim
Prevents simplex assembly in last dimension
2 parents 9d9b7c4 + f831bce commit 2a173d0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ripser/ripser.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,8 +636,9 @@ class ripser
636636
#endif
637637
auto cofacet = cofacets.next();
638638
if (get_diameter(cofacet) <= threshold) {
639-
next_simplices.push_back(
640-
{get_diameter(cofacet), get_index(cofacet)});
639+
if (dim != dim_max)
640+
next_simplices.push_back(
641+
{get_diameter(cofacet), get_index(cofacet)});
641642

642643
if (pivot_column_index.find(get_entry(cofacet)) ==
643644
pivot_column_index.end())

0 commit comments

Comments
 (0)