From 9f49a50485a395caa57f0335b5af4e88f2fa2e16 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Fri, 26 Jun 2020 09:53:17 -0400 Subject: Used the wrong variable for number of tuning sweeps for step. --- hadamard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadamard.cpp b/hadamard.cpp index 7276039..67a53f5 100644 --- a/hadamard.cpp +++ b/hadamard.cpp @@ -146,7 +146,7 @@ int main(int argc, char* argv[]) { Rng rng; for (unsigned i = 0; i < n_tuning; i++) { std::for_each(std::execution::par_unseq, p.Ms.begin(), p.Ms.end(), - [m, ε](MCMC& M) { M.tune(m, ε); }); + [M, ε](MCMC& MM) { MM.tune(M, ε); }); for (unsigned j = 0; j < p.Ms.size(); j++) { unsigned k = rng.uniform((unsigned)0, (unsigned)(p.Ms.size() - 2)); p.step(k, k + 1, true); -- cgit v1.2.3-70-g09d2