summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hadamard_pt.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/hadamard_pt.hpp b/hadamard_pt.hpp
index 9365e50..7b53b92 100644
--- a/hadamard_pt.hpp
+++ b/hadamard_pt.hpp
@@ -73,7 +73,7 @@ public:
Ms[j].tune(m, ε);
}
- for (unsigned k = 0; k < m * Ms.size() - 1; k++) {
+ for (unsigned k = 0; k < m * Ms.size(); k++) {
unsigned j = rng.uniform((unsigned)0, (unsigned)(Ms.size() - 2));
if (this->step(j, j + 1, true)) {
@@ -90,8 +90,6 @@ public:
nd[j]++;
}
}
-
-
}
std::vector<double> f(Ms.size());
@@ -157,7 +155,7 @@ public:
for (unsigned j = 0; j < Ms.size(); j++) {
Ms[j].run(m, dry);
}
- for (unsigned j = 0; j < Ms.size() * m; j++) {
+ for (unsigned j = 0; j < Ms.size(); j++) {
unsigned k = rng.uniform((unsigned)0, (unsigned)(Ms.size() - 2));
this->step(k, k + 1, dry);
}