Skip to content

Commit

Permalink
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-buildbot committed Dec 18, 2024
1 parent 9250e76 commit 4a058bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/test/unit/services/pathfinder/normal_glm_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ TEST_F(ServicesPathfinderGLM, single) {
init_alpha, tol_obj, tol_rel_obj, tol_grad, tol_rel_grad, tol_param,
num_iterations, num_elbo_draws, num_draws, save_iterations, refresh,
callback, logger, init, parameter, diagnostics);
ASSERT_EQ(rc, 0);
ASSERT_EQ(rc, 0);
Eigen::IOFormat CommaInitFmt(Eigen::StreamPrecision, 0, ", ", ", ", "\n", "",
"", "");
Eigen::MatrixXd param_vals = parameter.get_eigen_state_values();
Expand Down Expand Up @@ -151,7 +151,6 @@ TEST_F(ServicesPathfinderGLM, single_noreturnlp) {
std::unique_ptr<std::stringstream> string_ostream(new std::stringstream{});
stan::test::test_logger logger(std::move(string_ostream));


std::vector<std::tuple<Eigen::VectorXd, Eigen::VectorXd>> input_iters;

int rc = stan::services::pathfinder::pathfinder_lbfgs_single(
Expand Down Expand Up @@ -205,7 +204,8 @@ TEST_F(ServicesPathfinderGLM, multi) {
using init_context_t = decltype(init_init_context());
std::vector<std::unique_ptr<init_context_t>> single_path_inits;
for (int i = 0; i < num_paths; ++i) {
single_path_inits.emplace_back(std::make_unique<init_context_t>(init_init_context()));
single_path_inits.emplace_back(
std::make_unique<init_context_t>(init_init_context()));
}
stan::test::mock_callback callback;
int rc = stan::services::pathfinder::pathfinder_lbfgs_multi(
Expand Down
1 change: 0 additions & 1 deletion src/test/unit/services/pathfinder/util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ struct mock_callback : public stan::callbacks::interrupt {

template <typename T>
class test_logger : public stan::callbacks::logger {

public:
std::unique_ptr<T> log_;
test_logger(std::unique_ptr<T>&& x) : log_(std::move(x)) {}
Expand Down

0 comments on commit 4a058bc

Please sign in to comment.