Skip to content

Commit 5e37b98

Browse files
committed
[Jenkins] auto-formatting by clang-format version 6.0.0-1ubuntu2~16.04.1 (tags/RELEASE_600/final)
1 parent 754cf88 commit 5e37b98

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

stan/math/opencl/prim/neg_binomial_2_lpmf.hpp

+5-4
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,16 @@ inline return_type_t<T_n_cl, T_location_cl, T_precision_cl> neg_binomial_2_lpmf(
8787
= select(mu_val < phi_val, log1p(-elt_divide(mu_val, mu_plus_phi)),
8888
log_phi - log_mu_plus_phi);
8989
auto phi_deriv = elt_divide(mu_val - n, mu_plus_phi) + log_term
90-
- digamma(phi_val) + digamma(n_plus_phi);
90+
- digamma(phi_val) + digamma(n_plus_phi);
9191

9292
matrix_cl<double> logp_cl;
9393
matrix_cl<double> mu_deriv_cl;
9494
matrix_cl<double> phi_deriv_cl;
9595

96-
results(check_n_nonnegative, check_mu_positive_finite, check_phi_positive_finite,
97-
logp_cl, mu_deriv_cl, phi_deriv_cl)
98-
= expressions(n_nonnegative, mu_positive_finite, phi_positive_finite, logp_expr,
96+
results(check_n_nonnegative, check_mu_positive_finite,
97+
check_phi_positive_finite, logp_cl, mu_deriv_cl, phi_deriv_cl)
98+
= expressions(n_nonnegative, mu_positive_finite, phi_positive_finite,
99+
logp_expr,
99100
calc_if<!is_constant<T_location_cl>::value>(mu_deriv),
100101
calc_if<!is_constant<T_precision_cl>::value>(phi_deriv));
101102

test/unit/math/opencl/rev/neg_binomial_2_lpmf_test.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ TEST(muProbDistributionsNegBinomial2, opencl_matches_cpu_small) {
8282
Eigen::VectorXd phi(N);
8383
phi << 0.3, 0.8, 1.3;
8484

85-
stan::math::test::compare_cpu_opencl_prim_rev(neg_binomial_2_lpmf_functor,
86-
n, mu, phi);
85+
stan::math::test::compare_cpu_opencl_prim_rev(neg_binomial_2_lpmf_functor, n,
86+
mu, phi);
8787
stan::math::test::compare_cpu_opencl_prim_rev(
8888
neg_binomial_2_lpmf_functor_propto, n, mu, phi);
8989
}
@@ -143,8 +143,8 @@ TEST(muProbDistributionsNegBinomial2, opencl_matches_cpu_big) {
143143
Eigen::Matrix<double, Eigen::Dynamic, 1> phi
144144
= Eigen::Array<double, Eigen::Dynamic, 1>::Random(N, 1).abs();
145145

146-
stan::math::test::compare_cpu_opencl_prim_rev(neg_binomial_2_lpmf_functor,
147-
n, mu, phi);
146+
stan::math::test::compare_cpu_opencl_prim_rev(neg_binomial_2_lpmf_functor, n,
147+
mu, phi);
148148
stan::math::test::compare_cpu_opencl_prim_rev(
149149
neg_binomial_2_lpmf_functor_propto, n, mu, phi);
150150
}

test/unit/math/opencl/rev/weibull_lpdf_test.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ TEST(ProbDistributionsWeibull, opencl_broadcast_alpha) {
116116
Eigen::VectorXd sigma(N);
117117
sigma << 0.3, 0.8, 1.0;
118118

119-
stan::math::test::test_opencl_broadcasting_prim_rev<1>(weibull_lpdf_functor, y,
120-
alpha_scal, sigma);
119+
stan::math::test::test_opencl_broadcasting_prim_rev<1>(weibull_lpdf_functor,
120+
y, alpha_scal, sigma);
121121
stan::math::test::test_opencl_broadcasting_prim_rev<1>(
122122
weibull_lpdf_functor_propto, y, alpha_scal, sigma);
123123
}
@@ -131,8 +131,8 @@ TEST(ProbDistributionsWeibull, opencl_broadcast_sigma) {
131131
alpha << 0.3, 0.8, 1.0;
132132
double sigma_scal = 12.3;
133133

134-
stan::math::test::test_opencl_broadcasting_prim_rev<2>(weibull_lpdf_functor, y,
135-
alpha, sigma_scal);
134+
stan::math::test::test_opencl_broadcasting_prim_rev<2>(weibull_lpdf_functor,
135+
y, alpha, sigma_scal);
136136
stan::math::test::test_opencl_broadcasting_prim_rev<2>(
137137
weibull_lpdf_functor_propto, y, alpha, sigma_scal);
138138
}

0 commit comments

Comments
 (0)