Skip to content

Commit

Permalink
fixed a bug where in add_coboundary a simplex get added twice to the …
Browse files Browse the repository at this point in the history
…working_reduction_column
  • Loading branch information
ubauer committed Aug 29, 2019
1 parent a6d4140 commit 2a2d42a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ripser.cpp
Expand Up @@ -588,7 +588,6 @@ template <typename DistanceMatrix> class ripser {


for (diameter_entry_t simplex : reduction_matrix.subrange(index_column_to_add)) { for (diameter_entry_t simplex : reduction_matrix.subrange(index_column_to_add)) {
set_coefficient(simplex, get_coefficient(simplex) * factor % modulus); set_coefficient(simplex, get_coefficient(simplex) * factor % modulus);
working_reduction_column.push(simplex);
add_simplex_coboundary(simplex, dim, working_reduction_column, working_coboundary); add_simplex_coboundary(simplex, dim, working_reduction_column, working_coboundary);
} }
} }
Expand Down

0 comments on commit 2a2d42a

Please sign in to comment.