summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2020-06-26 09:53:17 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2020-06-26 09:53:17 -0400
commit9f49a50485a395caa57f0335b5af4e88f2fa2e16 (patch)
tree2b1f6019fc368c3dc7f2f8584c2ecf29617d3be7
parentfbd8f7c01dc163a67036c53df4871640aaf28c76 (diff)
downloadcode-9f49a50485a395caa57f0335b5af4e88f2fa2e16.tar.gz
code-9f49a50485a395caa57f0335b5af4e88f2fa2e16.tar.bz2
code-9f49a50485a395caa57f0335b5af4e88f2fa2e16.zip
Used the wrong variable for number of tuning sweeps for step.
-rw-r--r--hadamard.cpp2
1 files changed, 1 insertions, 1 deletions
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);