Skip to content

Commit 293eccc

Browse files
committed
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
1 parent a66f235 commit 293eccc

5 files changed

Lines changed: 19 additions & 17 deletions

File tree

stan/math/prim/meta/compiler_attributes.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131
#endif
3232

33-
3433
#ifndef STAN_COLD_PATH
3534
#define STAN_COLD_PATH
3635
#endif

test/unit/math/rev/functor/lorenz_ode_typed_fd_test.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ using lorenz_test_types = boost::mp11::mp_product<
2222

2323
TYPED_TEST_SUITE_P(lorenz_test);
2424
TYPED_TEST_P(lorenz_test, param_and_data_finite_diff) {
25-
if constexpr (std::is_same<TypeParam,
26-
std::tuple<ode_rk45_functor, ode_rk45_functor>>::value) {
25+
if constexpr (std::is_same<TypeParam, std::tuple<ode_rk45_functor,
26+
ode_rk45_functor>>::value) {
2727
this->test_fd_vd(1.e-6, 3e-2);
2828
this->test_fd_dv(1.e-6, 3e-2);
2929
this->test_fd_vv(1.e-6, 3e-2);
30-
} else if constexpr (std::is_same<TypeParam, std::tuple<ode_ckrk_functor,
31-
ode_ckrk_functor>>::value) {
30+
} else if constexpr (std::is_same<TypeParam,
31+
std::tuple<ode_ckrk_functor,
32+
ode_ckrk_functor>>::value) {
3233
this->test_fd_vd(1.e-6, 5e-2);
3334
this->test_fd_dv(1.e-6, 5e-2);
3435
this->test_fd_vv(1.e-6, 5e-2);

test/unit/math/rev/functor/sho_ode_adjoint_typed_error_test.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ TYPED_TEST_P(harmonic_oscillator_ctl_test, value) {
3636
this->test_value(-1.0);
3737

3838
if constexpr (std::is_same<std::tuple_element_t<2, TypeParam>, double>::value
39-
&& std::is_same<std::tuple_element_t<3, TypeParam>, double>::value
40-
&& std::is_same<std::tuple_element_t<4, TypeParam>, double>::value) {
39+
&& std::is_same<std::tuple_element_t<3, TypeParam>,
40+
double>::value
41+
&& std::is_same<std::tuple_element_t<4, TypeParam>,
42+
double>::value) {
4143
EXPECT_EQ(stan::math::nested_size(), 0);
4244
} else {
4345
EXPECT_GT(stan::math::nested_size(), 0);

test/unit/math/rev/functor/sho_ode_typed_test.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,23 +101,23 @@ using harmonic_oscillator_test_types = boost::mp11::mp_product<
101101
TYPED_TEST_SUITE_P(harmonic_oscillator_t0_ad_test);
102102
TYPED_TEST_P(harmonic_oscillator_t0_ad_test, t0_ad) {
103103
if constexpr (std::is_same<std::tuple_element_t<0, TypeParam>,
104-
ode_rk45_functor>::value) {
104+
ode_rk45_functor>::value) {
105105
this->test_t0_ad(5e-6);
106106
}
107107
if constexpr (std::is_same<std::tuple_element_t<0, TypeParam>,
108-
ode_ckrk_functor>::value) {
108+
ode_ckrk_functor>::value) {
109109
this->test_t0_ad(5e-6);
110110
}
111111
if constexpr (std::is_same<std::tuple_element_t<0, TypeParam>,
112-
ode_adams_functor>::value) {
112+
ode_adams_functor>::value) {
113113
this->test_t0_ad(1e-8);
114114
}
115115
if constexpr (std::is_same<std::tuple_element_t<0, TypeParam>,
116-
ode_bdf_functor>::value) {
116+
ode_bdf_functor>::value) {
117117
this->test_t0_ad(1e-7);
118118
}
119119
if constexpr (std::is_same<std::tuple_element_t<0, TypeParam>,
120-
ode_adjoint_functor>::value) {
120+
ode_adjoint_functor>::value) {
121121
this->test_t0_ad(1e-7);
122122
}
123123
}

test/unit/math/test_ad_matvar.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ void expect_ad_matvar_impl(const ad_tolerances& tols, const F& f,
431431
FAIL() << "expect_ad_matvar requires at least one varmat input!"
432432
<< std::endl;
433433
} else if constexpr (!stan::math::disjunction<
434-
is_var<scalar_type_t<Types>>...>::value) {
434+
is_var<scalar_type_t<Types>>...>::value) {
435435
FAIL() << "expect_ad_matvar requires at least one autodiff input!"
436436
<< std::endl;
437437
} else {
@@ -459,15 +459,15 @@ void expect_ad_matvar_impl(const ad_tolerances& tols, const F& f,
459459
T_vm_ret A_vm_ret;
460460

461461
if constexpr (is_var_matrix<T_mv_ret>::value
462-
|| (is_std_vector<T_mv_ret>::value
463-
&& is_var_matrix<value_type_t<T_mv_ret>>::value)) {
462+
|| (is_std_vector<T_mv_ret>::value
463+
&& is_var_matrix<value_type_t<T_mv_ret>>::value)) {
464464
FAIL() << "A function with matvar inputs should not return "
465465
<< type_name<T_mv_ret>() << std::endl;
466466
}
467467

468468
if constexpr (is_eigen<T_vm_ret>::value
469-
|| (is_std_vector<T_vm_ret>::value
470-
&& is_eigen<value_type_t<T_vm_ret>>::value)) {
469+
|| (is_std_vector<T_vm_ret>::value
470+
&& is_eigen<value_type_t<T_vm_ret>>::value)) {
471471
FAIL() << "A function with varmat inputs should not return "
472472
<< type_name<T_vm_ret>() << std::endl;
473473
}

0 commit comments

Comments
 (0)