Skip to content

Commit ffdc348

Browse files
committed
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
1 parent 1c0f6be commit ffdc348

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

stan/math/prim/prob/weibull_cdf.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ return_type_t<T_y, T_shape, T_scale> weibull_cdf(const T_y& y,
6969
constexpr bool any_derivs = !is_constant_all<T_y, T_shape, T_scale>::value;
7070
const auto& log_y = to_ref_if<any_derivs>(log(y_val));
7171
const auto& log_sigma = to_ref_if<any_derivs>(log(sigma_val));
72-
const auto& log_pow_n = to_ref_if<any_derivs>(
73-
alpha_val * log_y - alpha_val * log_sigma);
72+
const auto& log_pow_n
73+
= to_ref_if<any_derivs>(alpha_val * log_y - alpha_val * log_sigma);
7474
const auto& pow_n = to_ref_if<any_derivs>(exp(log_pow_n));
7575
const auto& log_cdf_n = to_ref_if<any_derivs>(log1m_exp(-pow_n));
7676

stan/math/prim/prob/weibull_lcdf.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ return_type_t<T_y, T_shape, T_scale> weibull_lcdf(const T_y& y,
6868
constexpr bool any_derivs = !is_constant_all<T_y, T_shape, T_scale>::value;
6969
const auto& log_y = to_ref_if<any_derivs>(log(y_val));
7070
const auto& log_sigma = to_ref_if<any_derivs>(log(sigma_val));
71-
const auto& log_pow_n = to_ref_if<any_derivs>(
72-
alpha_val * log_y - alpha_val * log_sigma);
71+
const auto& log_pow_n
72+
= to_ref_if<any_derivs>(alpha_val * log_y - alpha_val * log_sigma);
7373
const auto& pow_n = to_ref_if<any_derivs>(exp(log_pow_n));
7474

7575
if (any_derivs) {

test/unit/math/mix/prob/weibull_cdf_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ TEST(mathMixScalFun, weibull_cdf) {
99
using stan::math::positive_constrain;
1010

1111
return stan::math::weibull_cdf(lb_constrain(y, 0.0),
12-
positive_constrain(alpha),
13-
positive_constrain(sigma));
12+
positive_constrain(alpha),
13+
positive_constrain(sigma));
1414
};
1515

1616
using stan::math::log;
1717

1818
Eigen::VectorXd y(3);
19-
y << stan::math::NEGATIVE_INFTY, 1.2, 0.0; // lb_constrain(y[0], 0.0) = 0.0
19+
y << stan::math::NEGATIVE_INFTY, 1.2, 0.0; // lb_constrain(y[0], 0.0) = 0.0
2020

2121
Eigen::VectorXd alpha(3);
2222
alpha << 2.0, 3.0, 4.0;

test/unit/math/mix/prob/weibull_lcdf_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ TEST(mathMixScalFun, weibull_lcdf) {
1616
using stan::math::log;
1717

1818
Eigen::VectorXd y(3);
19-
y << stan::math::NEGATIVE_INFTY, 1.2, 0.0; // lb_constrain(y[0], 0.0) = 0.0
19+
y << stan::math::NEGATIVE_INFTY, 1.2, 0.0; // lb_constrain(y[0], 0.0) = 0.0
2020

2121
Eigen::VectorXd alpha(3);
2222
alpha << 2.0, 3.0, 4.0;

0 commit comments

Comments
 (0)