summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Bauer <mail@ulrich-bauer.org>2019-07-02 11:51:43 +0200
committerUlrich Bauer <mail@ulrich-bauer.org>2019-07-02 11:51:43 +0200
commitdcec6219f9bb245fa265063c6dd1c9d06d15aab0 (patch)
tree91673432e1ff9e044f250e3953d646351a901337
parentf7ece0c11c29fe676ea4e03c27035db0fde18e4b (diff)
fixed misplaced call to reduction_matrix.append_column
-rw-r--r--ripser.cpp4
1 files changed, 2 insertions, 2 deletions
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<diameter_entry_t, std::vector<diameter_entry_t>,
greater_diameter_or_smaller_index<diameter_entry_t>>
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) {