From 76204921e61c9178e800b48a9f5343bd44f6854b Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Sun, 22 Dec 2019 18:24:25 -0500 Subject: fewer pt tries per sweep --- hadamard_pt.hpp | 6 ++---- 1 file 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 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); } -- cgit v1.2.3-70-g09d2