From 91d51e1eedef1fb88ff9c5ea3ab1bbf64b755a42 Mon Sep 17 00:00:00 2001 From: Stan Jenkins Date: Fri, 2 Jul 2021 22:05:21 +0000 Subject: [PATCH] [Jenkins] auto-formatting by clang-format version 6.0.0-1ubuntu2~16.04.1 (tags/RELEASE_600/final) --- src/stan/services/sample/hmc_nuts_dense_e_adapt.hpp | 9 +++++---- src/stan/services/sample/hmc_nuts_diag_e_adapt.hpp | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/stan/services/sample/hmc_nuts_dense_e_adapt.hpp b/src/stan/services/sample/hmc_nuts_dense_e_adapt.hpp index 26f53cf7f28..2998959f17a 100644 --- a/src/stan/services/sample/hmc_nuts_dense_e_adapt.hpp +++ b/src/stan/services/sample/hmc_nuts_dense_e_adapt.hpp @@ -262,15 +262,16 @@ int hmc_nuts_dense_e_adapt( } tbb::parallel_for( tbb::blocked_range(0, num_chains, 1), - [num_warmup, num_samples, num_thin, refresh, save_warmup, num_chains, init_chain_id, - &samplers, &model, &rngs, &interrupt, &logger, &sample_writer, - &cont_vectors, + [num_warmup, num_samples, num_thin, refresh, save_warmup, num_chains, + init_chain_id, &samplers, &model, &rngs, &interrupt, &logger, + &sample_writer, &cont_vectors, &diagnostic_writer](const tbb::blocked_range& r) { for (size_t i = r.begin(); i != r.end(); ++i) { util::run_adaptive_sampler( samplers[i], model, cont_vectors[i], num_warmup, num_samples, num_thin, refresh, save_warmup, rngs[i], interrupt, logger, - sample_writer[i], diagnostic_writer[i], init_chain_id + i + 1, num_chains); + sample_writer[i], diagnostic_writer[i], init_chain_id + i + 1, + num_chains); } }, tbb::simple_partitioner()); diff --git a/src/stan/services/sample/hmc_nuts_diag_e_adapt.hpp b/src/stan/services/sample/hmc_nuts_diag_e_adapt.hpp index 079f3b39f75..d0a86e06dd7 100644 --- a/src/stan/services/sample/hmc_nuts_diag_e_adapt.hpp +++ b/src/stan/services/sample/hmc_nuts_diag_e_adapt.hpp @@ -263,15 +263,16 @@ int hmc_nuts_diag_e_adapt( } tbb::parallel_for( tbb::blocked_range(0, num_chains, 1), - [num_warmup, num_samples, num_thin, refresh, save_warmup, num_chains, init_chain_id, - &samplers, &model, &rngs, &interrupt, &logger, &sample_writer, - &cont_vectors, + [num_warmup, num_samples, num_thin, refresh, save_warmup, num_chains, + init_chain_id, &samplers, &model, &rngs, &interrupt, &logger, + &sample_writer, &cont_vectors, &diagnostic_writer](const tbb::blocked_range& r) { for (size_t i = r.begin(); i != r.end(); ++i) { util::run_adaptive_sampler( samplers[i], model, cont_vectors[i], num_warmup, num_samples, num_thin, refresh, save_warmup, rngs[i], interrupt, logger, - sample_writer[i], diagnostic_writer[i], init_chain_id + i + 1, num_chains); + sample_writer[i], diagnostic_writer[i], init_chain_id + i + 1, + num_chains); } }, tbb::simple_partitioner());