summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Bauer <ulrich.bauer@tum.de>2016-05-10 23:37:34 +0200
committerUlrich Bauer <ulrich.bauer@tum.de>2016-05-10 23:37:34 +0200
commit5dabdd082bbccfb3b8e92bd084a1d75d21760d1a (patch)
tree96be911d8ba235fb8f8897ea5561efead19a04b2
parentc2516e93840719016cea2a304f29085d29bfd82d (diff)
cleanup
-rw-r--r--ripser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ripser.cpp b/ripser.cpp
index ad1f028..7ff98da 100644
--- a/ripser.cpp
+++ b/ripser.cpp
@@ -624,8 +624,8 @@ void compute_pairs(
reduction_matrix.append();
#endif
- // initialize reduction_matrix as identity matrix
#ifdef ASSEMBLE_REDUCTION_MATRIX
+ // initialize reduction_matrix as identity matrix
reduction_matrix.push_back(make_diameter_entry(column_to_reduce, 1));
#else
#ifdef USE_COEFFICIENTS
@@ -714,9 +714,9 @@ void compute_pairs(
#endif
#endif
+ #ifdef ASSEMBLE_REDUCTION_MATRIX
// replace current column of reduction_matrix (with a single diagonal 1 entry)
// by reduction_column (possibly with a different entry on the diagonal)
- #ifdef ASSEMBLE_REDUCTION_MATRIX
reduction_matrix.pop_back();
while (true) {
diameter_entry_t e = pop_pivot(reduction_column, modulus);