From dcec6219f9bb245fa265063c6dd1c9d06d15aab0 Mon Sep 17 00:00:00 2001 From: Ulrich Bauer Date: Tue, 2 Jul 2019 11:51:43 +0200 Subject: fixed misplaced call to reduction_matrix.append_column --- ripser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ripser.cpp') diff --git a/ripser.cpp b/ripser.cpp index fde30ad..02527d4 100644 --- a/ripser.cpp +++ b/ripser.cpp @@ -554,6 +554,8 @@ public: << "\r" << std::flush; #endif + reduction_matrix.append_column(); + std::priority_queue, greater_diameter_or_smaller_index> working_reduction_column, working_coboundary; @@ -589,8 +591,6 @@ public: pivot_column_index.insert( std::make_pair(get_index(pivot), index_column_to_reduce)); - reduction_matrix.append_column(); - const coefficient_t inverse = multiplicative_inverse[get_coefficient(pivot)]; while (true) { -- cgit v1.2.3