Skip to content

Commit 95d9abf

Browse files
committed
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
1 parent 5f40b07 commit 95d9abf

6 files changed

Lines changed: 11 additions & 8 deletions

File tree

stan/math/prim/prob/wiener4_lccdf_unnorm.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,8 @@ inline auto wiener_lccdf_unnorm(const T_y& y, const T_a& a, const T_t0& t0,
324324
const auto new_est_err
325325
= log_ccdf_single_value + log_error_derivative - LOG_FOUR;
326326

327-
if constexpr (!is_constant_all<T_y>::value || !is_constant_all<T_t0>::value) {
327+
if constexpr (!is_constant_all<T_y>::value
328+
|| !is_constant_all<T_t0>::value) {
328329
const auto deriv_y = internal::estimate_with_err_check<5, 0>(
329330
[](auto&&... args) {
330331
return internal::wiener5_density<GradientCalc::ON>(args...);

stan/math/prim/prob/wiener4_lcdf_unnorm.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,8 @@ inline auto wiener_lcdf_unnorm(const T_y& y, const T_a& a, const T_t0& t0,
682682

683683
const auto new_est_err = log_cdf + log_error_derivative - LOG_FOUR;
684684

685-
if constexpr (!is_constant_all<T_y>::value || !is_constant_all<T_t0>::value) {
685+
if constexpr (!is_constant_all<T_y>::value
686+
|| !is_constant_all<T_t0>::value) {
686687
const auto deriv_y
687688
= internal::estimate_with_err_check<5, 0, GradientCalc::OFF,
688689
GradientCalc::ON>(

stan/math/prim/prob/wiener_full_lccdf_unnorm.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ inline auto wiener_lccdf_unnorm(const T_y& y, const T_a& a, const T_t0& t0,
120120
auto st0_val = to_ref(as_value_column_array_or_scalar(st0_ref));
121121

122122
if constexpr (!include_summand<propto, T_y, T_a, T_v, T_w, T_t0, T_sv, T_sw,
123-
T_st0>::value) {
123+
T_st0>::value) {
124124
return ret_t(0.0);
125125
}
126126

@@ -269,7 +269,8 @@ inline auto wiener_lccdf_unnorm(const T_y& y, const T_a& a, const T_t0& t0,
269269
// the value as deriv_t to edge1 and as -deriv_t to edge5
270270

271271
// computation of derivatives and precision checks
272-
if constexpr (!is_constant_all<T_y>::value || !is_constant_all<T_t0>::value) {
272+
if constexpr (!is_constant_all<T_y>::value
273+
|| !is_constant_all<T_t0>::value) {
273274
const T_partials_return deriv_t_7
274275
= -internal::wiener7_integrate_cdf<
275276
GradientCalc::OFF, GradientCalc::OFF, GradientCalc::OFF,

stan/math/prim/prob/wiener_full_lcdf_unnorm.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ inline auto wiener_lcdf_unnorm(const T_y& y, const T_a& a, const T_t0& t0,
296296
auto st0_val = to_ref(as_value_column_array_or_scalar(st0_ref));
297297

298298
if constexpr (!include_summand<propto, T_y, T_a, T_v, T_w, T_t0, T_sv, T_sw,
299-
T_st0>::value) {
299+
T_st0>::value) {
300300
return ret_t(0);
301301
}
302302

@@ -446,7 +446,8 @@ inline auto wiener_lcdf_unnorm(const T_y& y, const T_a& a, const T_t0& t0,
446446
// computation of derivative for t and precision check in order to give
447447
// the value as deriv_t to edge1 and as -deriv_t to edge5
448448

449-
if constexpr (!is_constant_all<T_y>::value || !is_constant_all<T_t0>::value) {
449+
if constexpr (!is_constant_all<T_y>::value
450+
|| !is_constant_all<T_t0>::value) {
450451
T_partials_return deriv_t_7
451452
= internal::wiener7_integrate_cdf<
452453
GradientCalc::OFF, GradientCalc::OFF, GradientCalc::OFF,

stan/math/prim/prob/wiener_full_lpdf.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ inline auto wiener_lpdf(const T_y& y, const T_a& a, const T_t0& t0,
353353
auto st0_val = to_ref(as_value_column_array_or_scalar(st0_ref));
354354

355355
if constexpr (!include_summand<propto, T_y, T_a, T_v, T_w, T_t0, T_sv, T_sw,
356-
T_st0>::value) {
356+
T_st0>::value) {
357357
return ret_t(0);
358358
}
359359

test/unit/math/prim/prob/wiener_full_lccdf_unnorm_test.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,4 +309,3 @@ TEST(mathPrimScalProbWienerFullLccdfPrecScal, invalid_st0) {
309309
EXPECT_THROW(wiener_lccdf_unnorm(rt, a, t0, w, v, sv, sw, NAN, 1e-4),
310310
std::domain_error);
311311
}
312-

0 commit comments

Comments
 (0)