Skip to content

Commit de50d88

Browse files
committed
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
1 parent 41f138f commit de50d88

156 files changed

Lines changed: 644 additions & 724 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

stan/math/fwd/fun/hypergeometric_pFq.hpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,11 @@ namespace math {
2525
* @param[in] z Scalar z argument
2626
* @return Generalized hypergeometric function
2727
*/
28-
template <typename Ta, typename Tb, typename Tz,
29-
typename FvarT = return_type_t<Ta, Tb, Tz>,
30-
bool grad_a = is_autodiff_v<Ta>,
31-
bool grad_b = is_autodiff_v<Tb>,
32-
bool grad_z = is_autodiff_v<Tz>,
33-
require_all_vector_t<Ta, Tb>* = nullptr,
34-
require_fvar_t<FvarT>* = nullptr>
28+
template <
29+
typename Ta, typename Tb, typename Tz,
30+
typename FvarT = return_type_t<Ta, Tb, Tz>, bool grad_a = is_autodiff_v<Ta>,
31+
bool grad_b = is_autodiff_v<Tb>, bool grad_z = is_autodiff_v<Tz>,
32+
require_all_vector_t<Ta, Tb>* = nullptr, require_fvar_t<FvarT>* = nullptr>
3533
inline FvarT hypergeometric_pFq(Ta&& a, Tb&& b, Tz&& z) {
3634
auto&& a_ref = to_ref(as_column_vector_or_scalar(a));
3735
auto&& b_ref = to_ref(as_column_vector_or_scalar(b));

stan/math/opencl/kernel_generator/multi_result_kernel.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ struct multi_result_kernel_internal {
7777
int expression_rows = expression.rows();
7878
int expression_cols = expression.cols();
7979
if constexpr (is_colwise_reduction<T_current_expression>::value
80-
&& expression_cols == -1) {
80+
&& expression_cols == -1) {
8181
expression_cols = n_cols;
8282
expression_rows = expression.thread_rows();
8383
expression_rows = internal::colwise_reduction_wgs_rows(
8484
expression_rows < 0 ? n_rows : expression_rows, expression_cols);
8585
} else if constexpr (is_reduction_2d<T_current_expression>::value
86-
&& expression_cols == -1) {
86+
&& expression_cols == -1) {
8787
expression_rows = internal::colwise_reduction_wgs_rows(n_rows, n_cols);
8888
if (expression_rows == 0) {
8989
expression_cols = 0;

stan/math/opencl/prim/bernoulli_logit_glm_lpmf.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ return_type_t<T_x_cl, T_alpha_cl, T_beta_cl> bernoulli_logit_glm_lpmf(
7979
if (N == 0) {
8080
return 0;
8181
}
82-
if constexpr (!include_summand<propto, T_x_cl, T_alpha_cl, T_beta_cl>::value) {
82+
if constexpr (!include_summand<propto, T_x_cl, T_alpha_cl,
83+
T_beta_cl>::value) {
8384
return 0;
8485
}
8586

stan/math/opencl/prim/bernoulli_logit_lpmf.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ return_type_t<T_prob_cl> bernoulli_logit_lpmf(const T_n_cl& n,
7272
matrix_cl<double> deriv_cl;
7373

7474
results(logp_cl, deriv_cl, check_n_bounded, check_theta_not_nan)
75-
= expressions(logp_expr,
76-
calc_if<is_autodiff_v<T_prob_cl>>(deriv_expr),
75+
= expressions(logp_expr, calc_if<is_autodiff_v<T_prob_cl>>(deriv_expr),
7776
n_bounded_expr, theta_not_nan_expr);
7877

7978
T_partials_return logp = sum(from_matrix_cl(logp_cl));

stan/math/opencl/prim/bernoulli_lpmf.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ return_type_t<T_prob_cl> bernoulli_lpmf(const T_n_cl& n,
6868
matrix_cl<double> deriv_cl;
6969

7070
results(logp_cl, deriv_cl, check_n_bounded, check_theta_bounded)
71-
= expressions(logp_expr,
72-
calc_if<is_autodiff_v<T_prob_cl>>(deriv_expr),
71+
= expressions(logp_expr, calc_if<is_autodiff_v<T_prob_cl>>(deriv_expr),
7372
n_bounded_expr, theta_bounded_expr);
7473

7574
logp = sum(from_matrix_cl(logp_cl));

stan/math/opencl/prim/beta_proportion_lpdf.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ return_type_t<T_y_cl, T_loc_cl, T_prec_cl> beta_proportion_lpdf(
103103
results(check_y_bounded, check_mu_bounded, check_kappa_positive_finite,
104104
logp_cl, y_deriv_cl, mu_deriv_cl, kappa_deriv_cl)
105105
= expressions(y_bounded_expr, mu_bounded_expr, kappa_positive_finite,
106-
logp_expr,
107-
calc_if<is_autodiff_v<T_y_cl>>(y_deriv_expr),
106+
logp_expr, calc_if<is_autodiff_v<T_y_cl>>(y_deriv_expr),
108107
calc_if<is_autodiff_v<T_loc_cl>>(mu_deriv_expr),
109108
calc_if<is_autodiff_v<T_prec_cl>>(kappa_deriv_expr));
110109

stan/math/opencl/prim/binomial_logit_glm_lpmf.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ return_type_t<T_x_cl, T_alpha_cl, T_beta_cl> binomial_logit_glm_lpmf(
5151
if (N_instances == 0 || N_attributes == 0) {
5252
return 0;
5353
}
54-
if constexpr (!include_summand<propto, T_x_cl, T_alpha_cl, T_beta_cl>::value) {
54+
if constexpr (!include_summand<propto, T_x_cl, T_alpha_cl,
55+
T_beta_cl>::value) {
5556
return 0;
5657
}
5758

stan/math/opencl/prim/cauchy_cdf.hpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,10 @@ return_type_t<T_y_cl, T_loc_cl, T_scale_cl> cauchy_cdf(
8383

8484
results(check_y_not_nan, check_mu_finite, check_sigma_positive_finite,
8585
any_y_neg_inf_cl, P_cl, mu_deriv_cl, sigma_deriv_cl)
86-
= expressions(
87-
y_not_nan_expr, mu_finite_expr, sigma_positive_finite_expr,
88-
any_y_neg_inf, P_expr,
89-
calc_if<is_any_autodiff_v<T_y_cl, T_loc_cl>>(mu_deriv_tmp),
90-
calc_if<is_autodiff_v<T_scale_cl>>(sigma_deriv_tmp));
86+
= expressions(y_not_nan_expr, mu_finite_expr, sigma_positive_finite_expr,
87+
any_y_neg_inf, P_expr,
88+
calc_if<is_any_autodiff_v<T_y_cl, T_loc_cl>>(mu_deriv_tmp),
89+
calc_if<is_autodiff_v<T_scale_cl>>(sigma_deriv_tmp));
9190

9291
if (from_matrix_cl(any_y_neg_inf_cl).maxCoeff()) {
9392
return 0.0;

stan/math/opencl/prim/cauchy_lccdf.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ return_type_t<T_y_cl, T_loc_cl, T_scale_cl> cauchy_lccdf(
8080
results(check_y_not_nan, check_mu_finite, check_sigma_positive_finite,
8181
ccdf_log_cl, y_deriv_cl, mu_deriv_cl, sigma_deriv_cl)
8282
= expressions(y_not_nan_expr, mu_finite_expr, sigma_positive_finite_expr,
83-
ccdf_log_expr,
84-
calc_if<is_autodiff_v<T_y_cl>>(-rep_deriv),
83+
ccdf_log_expr, calc_if<is_autodiff_v<T_y_cl>>(-rep_deriv),
8584
calc_if<is_autodiff_v<T_loc_cl>>(rep_deriv),
8685
calc_if<is_autodiff_v<T_scale_cl>>(sigma_deriv));
8786

stan/math/opencl/prim/cauchy_lcdf.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ return_type_t<T_y_cl, T_loc_cl, T_scale_cl> cauchy_lcdf(
8080
results(check_y_not_nan, check_mu_finite, check_sigma_positive_finite,
8181
cdf_log_cl, mu_deriv_cl, sigma_deriv_cl)
8282
= expressions(y_not_nan_expr, mu_finite_expr, sigma_positive_finite_expr,
83-
cdf_log_expr,
84-
calc_if<is_autodiff_v<T_y_cl>>(rep_deriv),
83+
cdf_log_expr, calc_if<is_autodiff_v<T_y_cl>>(rep_deriv),
8584
calc_if<is_autodiff_v<T_loc_cl>>(-rep_deriv),
8685
calc_if<is_autodiff_v<T_scale_cl>>(sigma_deriv));
8786

0 commit comments

Comments
 (0)