Skip to content

Commit f669b38

Browse files
committed
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
1 parent 67021e0 commit f669b38

6 files changed

Lines changed: 12 additions & 8 deletions

File tree

stan/math/opencl/kernel_generator/multi_result_kernel.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,14 @@ struct multi_result_kernel_internal {
7676

7777
int expression_rows = expression.rows();
7878
int expression_cols = expression.cols();
79-
if (is_colwise_reduction<T_current_expression>::value && expression_cols == -1) {
79+
if (is_colwise_reduction<T_current_expression>::value
80+
&& expression_cols == -1) {
8081
expression_cols = n_cols;
8182
expression_rows = expression.thread_rows();
8283
expression_rows = internal::colwise_reduction_wgs_rows(
8384
expression_rows < 0 ? n_rows : expression_rows, expression_cols);
84-
} else if (is_reduction_2d<T_current_expression>::value && expression_cols == -1) {
85+
} else if (is_reduction_2d<T_current_expression>::value
86+
&& expression_cols == -1) {
8587
expression_rows = internal::colwise_reduction_wgs_rows(n_rows, n_cols);
8688
if (expression_rows == 0) {
8789
expression_cols = 0;

stan/math/opencl/prim/categorical_logit_glm_lpmf.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,9 @@ return_type_t<T_x, T_alpha, T_beta> categorical_logit_glm_lpmf(
152152
try {
153153
opencl_kernels::categorical_logit_glm_beta_derivative(
154154
cl::NDRange(local_size * N_attributes), cl::NDRange(local_size),
155-
forward_as<arena_matrix_cl<double>>(partials<2>(ops_partials)), temp,
156-
y_val_cl, x_val, N_instances, N_attributes, N_classes, is_y_vector);
155+
forward_as<arena_matrix_cl<double>>(partials<2>(ops_partials)),
156+
temp, y_val_cl, x_val, N_instances, N_attributes, N_classes,
157+
is_y_vector);
157158
} catch (const cl::Error& e) {
158159
check_opencl_error(function, e);
159160
}

stan/math/prim/meta/is_constant.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ template <typename... T>
3939
using is_constant_all = math::conjunction<is_constant<T>...>;
4040

4141
template <typename... T>
42-
inline constexpr bool is_constant_all_v = is_constant_all<std::decay_t<T>...>::value;
42+
inline constexpr bool is_constant_all_v
43+
= is_constant_all<std::decay_t<T>...>::value;
4344

4445
/** \ingroup type_trait
4546
* Defines a static member named value and sets it to true

stan/math/prim/prob/beta_lpdf.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ return_type_t<T_y, T_scale_succ, T_scale_fail> beta_lpdf(
106106
if constexpr (is_any_autodiff_v<T_scale_succ, T_scale_fail>) {
107107
const auto& digamma_alpha_beta
108108
= to_ref_if<is_all_autodiff_v<T_scale_succ, T_scale_fail>>(
109-
digamma(alpha_beta));
109+
digamma(alpha_beta));
110110
if constexpr (is_autodiff_v<T_scale_succ>) {
111111
edge<1>(ops_partials).partials_
112112
= log_y + digamma_alpha_beta - digamma(alpha_val);

stan/math/prim/prob/exp_mod_normal_lpdf.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ return_type_t<T_y, T_loc, T_scale, T_inv_scale> exp_mod_normal_lpdf(
9696
-SQRT_TWO_OVER_SQRT_PI * exp_m_sq_inner_term / erfc_calc);
9797
if constexpr (is_any_autodiff_v<T_y, T_loc>) {
9898
const auto& deriv = to_ref_if<is_all_autodiff_v<T_y, T_loc>>(
99-
lambda_val + deriv_logerfc * inv_sigma);
99+
lambda_val + deriv_logerfc * inv_sigma);
100100
if constexpr (is_autodiff_v<T_y>) {
101101
partials<0>(ops_partials) = -deriv;
102102
}

stan/math/rev/fun/trace_gen_quad_form.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ inline var trace_gen_quad_form(const Td& D, const Ta& A, const Tb& B) {
259259
});
260260

261261
return res;
262-
} else if constexpr (is_constant_all_v<Ta, Tb> && is_autodiff_v<Td>) {
262+
} else if constexpr (is_constant_all_v<Ta, Tb> && is_autodiff_v<Td>) {
263263
arena_t<promote_scalar_t<var, Td>> arena_D = D;
264264
arena_t<promote_scalar_t<double, Ta>> arena_A = value_of(A);
265265
arena_t<promote_scalar_t<double, Tb>> arena_B = value_of(B);

0 commit comments

Comments
 (0)