Skip to content

Commit

Permalink
Fixing H2 sparse matrix threshold bug. Fixes #51
Browse files Browse the repository at this point in the history
  • Loading branch information
ctralie committed Nov 13, 2018
1 parent dc9c50f commit d6a68f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ripser/ripser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,8 @@ void ripser<sparse_distance_matrix>::assemble_columns_to_reduce(
}

simplices.swap(next_simplices);
std::sort(columns_to_reduce.begin(), columns_to_reduce.end(),
greater_diameter_or_smaller_index<diameter_index_t>());
}

ripserResults rips_dm(float* D, int N, int modulus, int dim_max, float threshold, int do_cocycles) {
Expand Down

0 comments on commit d6a68f4

Please sign in to comment.