diff --git a/src/stan/services/sample/hmc_nuts_dense_e.hpp b/src/stan/services/sample/hmc_nuts_dense_e.hpp index d582e1c6c6..73e0a2af1d 100644 --- a/src/stan/services/sample/hmc_nuts_dense_e.hpp +++ b/src/stan/services/sample/hmc_nuts_dense_e.hpp @@ -123,7 +123,8 @@ int hmc_nuts_dense_e(Model& model, const stan::io::var_context& init, callbacks::writer& init_writer, callbacks::writer& sample_writer, callbacks::writer& diagnostic_writer) { - auto default_metric = util::create_unit_e_dense_inv_metric(model.num_params_r()); + auto default_metric + = util::create_unit_e_dense_inv_metric(model.num_params_r()); return hmc_nuts_dense_e(model, init, default_metric, random_seed, chain, init_radius, num_warmup, num_samples, num_thin, save_warmup, refresh, stepsize, stepsize_jitter, 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 95bca2bff7..913c50152a 100644 --- a/src/stan/services/sample/hmc_nuts_dense_e_adapt.hpp +++ b/src/stan/services/sample/hmc_nuts_dense_e_adapt.hpp @@ -206,7 +206,8 @@ int hmc_nuts_dense_e_adapt( callbacks::logger& logger, callbacks::writer& init_writer, callbacks::writer& sample_writer, callbacks::writer& diagnostic_writer, callbacks::structured_writer& metric_writer) { - auto default_metric = util::create_unit_e_dense_inv_metric(model.num_params_r()); + auto default_metric + = util::create_unit_e_dense_inv_metric(model.num_params_r()); return hmc_nuts_dense_e_adapt( model, init, default_metric, random_seed, chain, init_radius, num_warmup, num_samples, num_thin, save_warmup, refresh, stepsize, stepsize_jitter, @@ -257,7 +258,8 @@ int hmc_nuts_dense_e_adapt( unsigned int window, callbacks::interrupt& interrupt, callbacks::logger& logger, callbacks::writer& init_writer, callbacks::writer& sample_writer, callbacks::writer& diagnostic_writer) { - auto default_metric = util::create_unit_e_dense_inv_metric(model.num_params_r()); + auto default_metric + = util::create_unit_e_dense_inv_metric(model.num_params_r()); callbacks::structured_writer dummy_metric_writer; return hmc_nuts_dense_e_adapt( model, init, default_metric, random_seed, chain, init_radius, num_warmup, diff --git a/src/stan/services/sample/hmc_nuts_diag_e.hpp b/src/stan/services/sample/hmc_nuts_diag_e.hpp index 17f6f86428..e693ed0a83 100644 --- a/src/stan/services/sample/hmc_nuts_diag_e.hpp +++ b/src/stan/services/sample/hmc_nuts_diag_e.hpp @@ -121,7 +121,8 @@ int hmc_nuts_diag_e(Model& model, const stan::io::var_context& init, callbacks::writer& init_writer, callbacks::writer& sample_writer, callbacks::writer& diagnostic_writer) { - auto default_metric = util::create_unit_e_diag_inv_metric(model.num_params_r()); + auto default_metric + = util::create_unit_e_diag_inv_metric(model.num_params_r()); return hmc_nuts_diag_e(model, init, default_metric, random_seed, chain, init_radius, num_warmup, num_samples, num_thin, save_warmup, refresh, stepsize, stepsize_jitter, diff --git a/src/stan/services/sample/hmc_static_dense_e.hpp b/src/stan/services/sample/hmc_static_dense_e.hpp index 962441912d..c337636f9c 100644 --- a/src/stan/services/sample/hmc_static_dense_e.hpp +++ b/src/stan/services/sample/hmc_static_dense_e.hpp @@ -116,7 +116,8 @@ int hmc_static_dense_e( double stepsize_jitter, double int_time, callbacks::interrupt& interrupt, callbacks::logger& logger, callbacks::writer& init_writer, callbacks::writer& sample_writer, callbacks::writer& diagnostic_writer) { - auto default_metric = util::create_unit_e_dense_inv_metric(model.num_params_r()); + auto default_metric + = util::create_unit_e_dense_inv_metric(model.num_params_r()); return hmc_static_dense_e(model, init, default_metric, random_seed, chain, init_radius, num_warmup, num_samples, num_thin, save_warmup, refresh, stepsize, stepsize_jitter, diff --git a/src/stan/services/sample/hmc_static_dense_e_adapt.hpp b/src/stan/services/sample/hmc_static_dense_e_adapt.hpp index f1027ca837..21bd6d711d 100644 --- a/src/stan/services/sample/hmc_static_dense_e_adapt.hpp +++ b/src/stan/services/sample/hmc_static_dense_e_adapt.hpp @@ -148,7 +148,8 @@ int hmc_static_dense_e_adapt( unsigned int window, callbacks::interrupt& interrupt, callbacks::logger& logger, callbacks::writer& init_writer, callbacks::writer& sample_writer, callbacks::writer& diagnostic_writer) { - auto default_metric = util::create_unit_e_dense_inv_metric(model.num_params_r()); + auto default_metric + = util::create_unit_e_dense_inv_metric(model.num_params_r()); return hmc_static_dense_e_adapt( model, init, default_metric, random_seed, chain, init_radius, num_warmup, diff --git a/src/stan/services/sample/hmc_static_diag_e.hpp b/src/stan/services/sample/hmc_static_diag_e.hpp index 2c1733d2cc..87ea955f84 100644 --- a/src/stan/services/sample/hmc_static_diag_e.hpp +++ b/src/stan/services/sample/hmc_static_diag_e.hpp @@ -121,7 +121,8 @@ int hmc_static_diag_e(Model& model, const stan::io::var_context& init, callbacks::logger& logger, callbacks::writer& init_writer, callbacks::writer& sample_writer, callbacks::writer& diagnostic_writer) { - auto default_metric = util::create_unit_e_diag_inv_metric(model.num_params_r()); + auto default_metric + = util::create_unit_e_diag_inv_metric(model.num_params_r()); return hmc_static_diag_e(model, init, default_metric, random_seed, chain, init_radius, num_warmup, num_samples, num_thin, diff --git a/src/stan/services/sample/hmc_static_diag_e_adapt.hpp b/src/stan/services/sample/hmc_static_diag_e_adapt.hpp index 1b6c0b566c..88979dc341 100644 --- a/src/stan/services/sample/hmc_static_diag_e_adapt.hpp +++ b/src/stan/services/sample/hmc_static_diag_e_adapt.hpp @@ -146,7 +146,8 @@ int hmc_static_diag_e_adapt( unsigned int window, callbacks::interrupt& interrupt, callbacks::logger& logger, callbacks::writer& init_writer, callbacks::writer& sample_writer, callbacks::writer& diagnostic_writer) { - auto default_metric = util::create_unit_e_diag_inv_metric(model.num_params_r()); + auto default_metric + = util::create_unit_e_diag_inv_metric(model.num_params_r()); return hmc_static_diag_e_adapt( model, init, default_metric, random_seed, chain, init_radius, num_warmup, diff --git a/src/test/unit/services/util/inv_metric_test.cpp b/src/test/unit/services/util/inv_metric_test.cpp index 78542890eb..0c2f3888e1 100644 --- a/src/test/unit/services/util/inv_metric_test.cpp +++ b/src/test/unit/services/util/inv_metric_test.cpp @@ -18,7 +18,8 @@ TEST(inv_metric, create_diag_sz0) { } TEST(inv_metric, create_diag_sz100) { - auto default_metric = stan::services::util::create_unit_e_diag_inv_metric(100); + auto default_metric + = stan::services::util::create_unit_e_diag_inv_metric(100); stan::io::var_context& inv_inv_metric = default_metric; std::vector diag_vals = inv_inv_metric.vals_r("inv_metric"); EXPECT_EQ(100, diag_vals.size()); @@ -52,7 +53,8 @@ TEST(inv_metric, create_dense_sz3) { } TEST(inv_metric, create_dense_sz10) { - auto default_metric = stan::services::util::create_unit_e_dense_inv_metric(10); + auto default_metric + = stan::services::util::create_unit_e_dense_inv_metric(10); stan::io::var_context& inv_inv_metric = default_metric; std::vector dense_vals = inv_inv_metric.vals_r("inv_metric"); EXPECT_EQ(100, dense_vals.size());