From 6e7c832ea95a9eae520344db3317f6239c227704 Mon Sep 17 00:00:00 2001 From: Stan Jenkins Date: Fri, 5 Jan 2024 14:22:26 -0500 Subject: [PATCH] [Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1 --- src/stan/callbacks/unique_stream_writer.hpp | 2 +- src/stan/callbacks/writer.hpp | 1 - src/stan/services/pathfinder/single.hpp | 14 +++++++++----- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/stan/callbacks/unique_stream_writer.hpp b/src/stan/callbacks/unique_stream_writer.hpp index 3dc5294100..24df4d9a4a 100644 --- a/src/stan/callbacks/unique_stream_writer.hpp +++ b/src/stan/callbacks/unique_stream_writer.hpp @@ -77,7 +77,7 @@ class unique_stream_writer final : public writer { return; write_vector(values); } - + /** * Writes a set of values in csv format followed by a newline. * diff --git a/src/stan/callbacks/writer.hpp b/src/stan/callbacks/writer.hpp index 36a1bf4cdf..e893b0c4de 100644 --- a/src/stan/callbacks/writer.hpp +++ b/src/stan/callbacks/writer.hpp @@ -77,7 +77,6 @@ class writer { * @param[in] v Values in an Eigen row vector */ virtual void operator()(const Eigen::Matrix& values) {} - }; } // namespace callbacks diff --git a/src/stan/services/pathfinder/single.hpp b/src/stan/services/pathfinder/single.hpp index e3a5a7b45a..5b163c519e 100644 --- a/src/stan/services/pathfinder/single.hpp +++ b/src/stan/services/pathfinder/single.hpp @@ -881,7 +881,7 @@ inline auto pathfinder_lbfgs_single( const auto total_size = elbo_draws.cols() + new_draws.cols(); constrained_draws_mat = Eigen::Matrix(names.size(), - total_size); + total_size); Eigen::VectorXd unconstrained_col; Eigen::VectorXd approx_samples_constrained_col; for (Eigen::Index i = 0; i < elbo_draws.cols(); ++i) { @@ -889,7 +889,8 @@ inline auto pathfinder_lbfgs_single( unconstrained_col = elbo_draws.col(i); constrained_draws_mat.col(i).tail(num_unconstrained_params) = constrain_fun(rng, unconstrained_col, - approx_samples_constrained_col).matrix(); + approx_samples_constrained_col) + .matrix(); } for (Eigen::Index i = elbo_draws.cols(), j = 0; i < total_size; ++i, ++j) { @@ -897,7 +898,8 @@ inline auto pathfinder_lbfgs_single( unconstrained_col = new_draws.col(j); constrained_draws_mat.col(i).tail(num_unconstrained_params) = constrain_fun(rng, unconstrained_col, - approx_samples_constrained_col).matrix(); + approx_samples_constrained_col) + .matrix(); } } catch (const std::exception& e) { std::string err_msg = e.what(); @@ -917,7 +919,8 @@ inline auto pathfinder_lbfgs_single( unconstrained_col = elbo_draws.col(i); constrained_draws_mat.col(i).tail(num_unconstrained_params) = constrain_fun(rng, unconstrained_col, - approx_samples_constrained_col).matrix(); + approx_samples_constrained_col) + .matrix(); } lp_ratio = std::move(elbo_best.lp_ratio); } @@ -932,7 +935,8 @@ inline auto pathfinder_lbfgs_single( unconstrained_col = elbo_draws.col(i); constrained_draws_mat.col(i).tail(num_unconstrained_params) = constrain_fun(rng, unconstrained_col, - approx_samples_constrained_col).matrix(); + approx_samples_constrained_col) + .matrix(); } lp_ratio = std::move(elbo_best.lp_ratio); }