Skip to content

Commit 8ec10de

Browse files
committed
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
1 parent 38d67ce commit 8ec10de

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

stan/math/mix/functor/laplace_marginal_density.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@ inline auto laplace_marginal_density(LLFun&& ll_fun, LLTupleArgs&& ll_args,
6565
},
6666
std::forward<CovarArgs>(covar_args));
6767
return internal::laplace_marginal_density_est(
68-
std::forward<LLFun>(ll_fun), to_ref(std::forward<LLTupleArgs>(ll_args)),
69-
std::move(covariance), options, msgs)
68+
std::forward<LLFun>(ll_fun),
69+
to_ref(std::forward<LLTupleArgs>(ll_args)), std::move(covariance),
70+
options, msgs)
7071
.lmd;
7172
}
7273

test/unit/math/laplace/laplace_types_test.cpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ TEST_P(laplace_types, poisson_log_phi_dim_2_tuple_extended) {
123123
int dim_theta = 2;
124124
Eigen::VectorXd theta_0{{0, 0}};
125125

126-
std::vector<Eigen::VectorXd> x{Eigen::VectorXd{{0.05100797, 0.16086164}}, Eigen::VectorXd{{-0.59823393, 0.98701425}}};
126+
std::vector<Eigen::VectorXd> x{Eigen::VectorXd{{0.05100797, 0.16086164}},
127+
Eigen::VectorXd{{-0.59823393, 0.98701425}}};
127128

128129
std::vector<int> n_samples = {1, 1};
129130
std::vector<int> sums = {1, 0};
@@ -161,10 +162,11 @@ TEST_P(laplace_types, poisson_log_phi_dim_2_tuple_extended) {
161162
auto eta2_ref = stan::math::eval(stan::math::to_ref(eta2));
162163
fail_msg << "Exception thrown with phi("
163164
<< test_type_name<decltype(phi_ref)>() << ")=" << phi_ref[0]
164-
<< ", phi(" << test_type_name<decltype(phi_ref)>() << ")="
165-
<< phi_ref[0] << ", eta1(" << test_type_name<decltype(eta1_ref)>() << ")="
166-
<< eta1_ref[0] << ", eta2(" << test_type_name<decltype(eta2_ref)>() << ")="
167-
<< eta2_ref[0] << ". ";
165+
<< ", phi(" << test_type_name<decltype(phi_ref)>()
166+
<< ")=" << phi_ref[0] << ", eta1("
167+
<< test_type_name<decltype(eta1_ref)>() << ")=" << eta1_ref[0]
168+
<< ", eta2(" << test_type_name<decltype(eta2_ref)>()
169+
<< ")=" << eta2_ref[0] << ". ";
168170
ADD_FAILURE() << fail_msg.str() << "\n Error message: " << e.what();
169171
throw;
170172
}
@@ -280,7 +282,8 @@ TEST_P(laplace_types, poisson_log_phi_dim_2_array_tuple) {
280282
Eigen::Matrix<double, Eigen::Dynamic, 1> phi_dbl{{1.6, 0.45}};
281283
constexpr int dim_theta = 2;
282284
Eigen::VectorXd theta_0{{0, 0}};
283-
std::vector<Eigen::VectorXd> x{Eigen::VectorXd{{0.05100797, 0.16086164}}, Eigen::VectorXd{{-0.59823393, 0.98701425}}};
285+
std::vector<Eigen::VectorXd> x{Eigen::VectorXd{{0.05100797, 0.16086164}},
286+
Eigen::VectorXd{{-0.59823393, 0.98701425}}};
284287
std::vector<int> n_samples = {1, 1};
285288
std::vector<int> sums = {1, 0};
286289
const auto test_params = GetParam();

0 commit comments

Comments
 (0)