Skip to content

Commit ebea2cf

Browse files
committed
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
1 parent 51c3002 commit ebea2cf

6 files changed

Lines changed: 15 additions & 18 deletions

File tree

stan/math/mix/prob/laplace_latent_rng.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ template <typename LLFunc, typename LLArgs, typename CovarFun,
7272
inline auto laplace_latent_rng(LLFunc&& L_f, LLArgs&& ll_args,
7373
int hessian_block_size,
7474
CovarFun&& covariance_function,
75-
CovarArgs&& covar_args,
76-
RNG& rng, std::ostream* msgs) {
75+
CovarArgs&& covar_args, RNG& rng,
76+
std::ostream* msgs) {
7777
auto options = laplace_options_default{hessian_block_size};
7878
return laplace_base_rng(
7979
std::forward<LLFunc>(L_f), std::forward<LLArgs>(ll_args),

stan/math/mix/prob/laplace_marginal.hpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ template <bool propto = false, typename LFun, typename LArgs, typename CovarFun,
3232
inline auto laplace_marginal_tol(LFun&& L_f, LArgs&& l_args,
3333
int hessian_block_size,
3434
CovarFun&& covariance_function,
35-
CovarArgs&& covar_args,
36-
OpsTuple&& ops, std::ostream* msgs) {
35+
CovarArgs&& covar_args, OpsTuple&& ops,
36+
std::ostream* msgs) {
3737
auto options
3838
= internal::tuple_to_laplace_options(std::forward<OpsTuple>(ops));
3939
options.hessian_block_size = hessian_block_size;
@@ -64,11 +64,9 @@ inline auto laplace_marginal_tol(LFun&& L_f, LArgs&& l_args,
6464
*/
6565
template <bool propto = false, typename LFun, typename LArgs, typename CovarFun,
6666
typename CovarArgs>
67-
inline auto laplace_marginal(LFun&& L_f, LArgs&& l_args,
68-
int hessian_block_size,
67+
inline auto laplace_marginal(LFun&& L_f, LArgs&& l_args, int hessian_block_size,
6968
CovarFun&& covariance_function,
70-
CovarArgs&& covar_args,
71-
std::ostream* msgs) {
69+
CovarArgs&& covar_args, std::ostream* msgs) {
7270
auto options = laplace_options_default{hessian_block_size};
7371
return laplace_marginal_density(
7472
std::forward<LFun>(L_f), std::forward<LArgs>(l_args),

test/unit/math/laplace/aki_ex_test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ TEST(WriteArrayBodySimple, ExceededIteration) {
8585
double ll_laplace_val{0};
8686
try {
8787
ll_laplace_val = stan::math::laplace_marginal(
88-
poisson_re_log_ll_functor(), std::forward_as_tuple(y, mu),
89-
1, cov_fun_functor(), std::tuple<double, int>(sigmaz, 1), pstream);
88+
poisson_re_log_ll_functor(), std::forward_as_tuple(y, mu), 1,
89+
cov_fun_functor(), std::tuple<double, int>(sigmaz, 1), pstream);
9090
} catch (const std::domain_error& e) {
9191
// Log bad values to CSV files
9292
ADD_FAILURE() << "Laplace failed"
@@ -164,8 +164,8 @@ TEST(WriteArrayBodySimple, ExecutesBodyWithHardcodedData) {
164164
}
165165
}
166166
auto ll_laplace_all = stan::math::laplace_marginal(
167-
poisson_re_log_ll_functor(), std::forward_as_tuple(y, mu),
168-
1, cov_fun_functor(), std::tuple<double, int>(sigmaz, N), pstream);
167+
poisson_re_log_ll_functor(), std::forward_as_tuple(y, mu), 1,
168+
cov_fun_functor(), std::tuple<double, int>(sigmaz, N), pstream);
169169
stan::test::relative_tolerance sum_rel_tol(3e-2);
170170
expect_near_rel("sum laplace vs integrated sum", ll_laplace,
171171
ll_integrate_1d, sum_rel_tol, "laplace_sum",

test/unit/math/laplace/laplace_marginal_bernoulli_logit_lpmf_test.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ TEST_P(laplace_marginal_bernoulli_logit_lpmf, phi_dim500) {
4545
using stan::math::test::sqr_exp_kernel_functor;
4646
double target = laplace_marginal_bernoulli_logit_lpmf(
4747
y, n_samples, 0, hessian_block_size, sqr_exp_kernel_functor{},
48-
std::forward_as_tuple(x, phi_dbl(0), phi_dbl(1)),
49-
nullptr);
48+
std::forward_as_tuple(x, phi_dbl(0), phi_dbl(1)), nullptr);
5049
// Benchmark against gpstuff.
5150
constexpr double tol = 8e-4;
5251
EXPECT_NEAR(-195.368, target, tol);

test/unit/math/laplace/laplace_marginal_lpdf_moto_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ TEST_P(laplace_motorcyle_gp_test, gp_motorcycle_val) {
148148
LAPLACE_SKIP_IF_INVALID_TEST_COMBO(hessian_block_size, dim_theta);
149149

150150
laplace_marginal_tol<false>(
151-
normal_likelihood{}, std::forward_as_tuple(y, n_obs),
152-
hessian_block_size, covariance_motorcycle_functor{},
151+
normal_likelihood{}, std::forward_as_tuple(y, n_obs), hessian_block_size,
152+
covariance_motorcycle_functor{},
153153
std::forward_as_tuple(x, phi_dbl(0), phi_dbl(1), phi_dbl(2), phi_dbl(3),
154154
n_obs),
155155
std::make_tuple(theta0, tolerance, max_num_steps, solver_num,

test/unit/math/laplace/laplace_types_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ TEST_P(laplace_types, poisson_log_phi_dim_2_array_tuple) {
326326
alpha_tuple.push_back(std::make_tuple(alpha_rho(0), alpha_rho(1)));
327327
return laplace_marginal_tol<false>(
328328
poisson_log_likelihood_array_tuple{},
329-
std::forward_as_tuple(sums, eta_tuple),
330-
hessian_block_size, stan::math::test::squared_kernel_functor{},
329+
std::forward_as_tuple(sums, eta_tuple), hessian_block_size,
330+
stan::math::test::squared_kernel_functor{},
331331
std::forward_as_tuple(x, alpha_tuple),
332332
std::make_tuple(theta_0, tolerance, max_num_steps, solver_num,
333333
max_steps_line_search, true),

0 commit comments

Comments
 (0)