Skip to content

Commit 2f4545f

Browse files
committed
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
1 parent 3f790f3 commit 2f4545f

18 files changed

+332
-284
lines changed

stan/math/prim/prob/wiener4_lccdf_defective.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ inline auto wiener4_ccdf_grad_w(const T_y& y, const T_a& a, const T_v& v,
225225
template <bool propto = false, typename T_y, typename T_a, typename T_t0,
226226
typename T_w, typename T_v>
227227
inline auto wiener_lccdf_defective(const T_y& y, const T_a& a, const T_t0& t0,
228-
const T_w& w, const T_v& v,
229-
const double& precision_derivatives) {
228+
const T_w& w, const T_v& v,
229+
const double& precision_derivatives) {
230230
using T_partials_return = partials_return_t<T_y, T_a, T_t0, T_w, T_v>;
231231
using ret_t = return_type_t<T_y, T_a, T_t0, T_w, T_v>;
232232
using T_y_ref = ref_type_if_t<!is_constant<T_y>::value, T_y>;

stan/math/prim/prob/wiener4_lcdf_defective.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,8 +587,8 @@ inline auto wiener4_cdf_grad_w(const T_y& y, const T_a& a, const T_v& v,
587587
template <bool propto = false, typename T_y, typename T_a, typename T_t0,
588588
typename T_w, typename T_v>
589589
inline auto wiener_lcdf_defective(const T_y& y, const T_a& a, const T_t0& t0,
590-
const T_w& w, const T_v& v,
591-
const double& precision_derivatives = 1e-4) {
590+
const T_w& w, const T_v& v,
591+
const double& precision_derivatives = 1e-4) {
592592
using T_partials_return = partials_return_t<T_y, T_a, T_t0, T_w, T_v>;
593593
using T_y_ref = ref_type_if_t<!is_constant<T_y>::value, T_y>;
594594
using T_a_ref = ref_type_if_t<!is_constant<T_a>::value, T_a>;

stan/math/prim/prob/wiener_full_lccdf_defective.hpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ template <bool propto = false, typename T_y, typename T_a, typename T_t0,
8585
typename T_w, typename T_v, typename T_sv, typename T_sw,
8686
typename T_st0>
8787
inline auto wiener_lccdf_defective(const T_y& y, const T_a& a, const T_t0& t0,
88-
const T_w& w, const T_v& v, const T_sv& sv,
89-
const T_sw& sw, const T_st0& st0,
90-
const double& precision_derivatives = 1e-8) {
88+
const T_w& w, const T_v& v, const T_sv& sv,
89+
const T_sw& sw, const T_st0& st0,
90+
const double& precision_derivatives = 1e-8) {
9191
using ret_t = return_type_t<T_y, T_a, T_t0, T_w, T_v, T_sv, T_sw, T_st0>;
9292
using T_y_ref = ref_type_if_t<!is_constant<T_y>::value, T_y>;
9393
using T_a_ref = ref_type_if_t<!is_constant<T_a>::value, T_a>;
@@ -211,8 +211,9 @@ inline auto wiener_lccdf_defective(const T_y& y, const T_a& a, const T_t0& t0,
211211
// calculate density and partials
212212
for (size_t i = 0; i < N; i++) {
213213
if (sv_vec[i] == 0 && sw_vec[i] == 0 && st0_vec[i] == 0) {
214-
result += wiener_lccdf_defective<propto>(y_vec[i], a_vec[i], t0_vec[i], w_vec[i],
215-
v_vec[i], precision_derivatives);
214+
result += wiener_lccdf_defective<propto>(y_vec[i], a_vec[i], t0_vec[i],
215+
w_vec[i], v_vec[i],
216+
precision_derivatives);
216217
continue;
217218
}
218219
const T_partials_return y_value = y_vec.val(i);

stan/math/prim/prob/wiener_full_lcdf_defective.hpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,9 @@ template <bool propto = false, typename T_y, typename T_a, typename T_t0,
261261
typename T_w, typename T_v, typename T_sv, typename T_sw,
262262
typename T_st0>
263263
inline auto wiener_lcdf_defective(const T_y& y, const T_a& a, const T_t0& t0,
264-
const T_w& w, const T_v& v, const T_sv& sv,
265-
const T_sw& sw, const T_st0& st0,
266-
const double& precision_derivatives = 1e-8) {
264+
const T_w& w, const T_v& v, const T_sv& sv,
265+
const T_sw& sw, const T_st0& st0,
266+
const double& precision_derivatives = 1e-8) {
267267
using ret_t = return_type_t<T_y, T_a, T_t0, T_w, T_v, T_sv, T_sw, T_st0>;
268268
using T_y_ref = ref_type_if_t<!is_constant<T_y>::value, T_y>;
269269
using T_a_ref = ref_type_if_t<!is_constant<T_a>::value, T_a>;
@@ -387,8 +387,9 @@ inline auto wiener_lcdf_defective(const T_y& y, const T_a& a, const T_t0& t0,
387387
// calculate density and partials
388388
for (size_t i = 0; i < N; i++) {
389389
if (sv_vec[i] == 0 && sw_vec[i] == 0 && st0_vec[i] == 0) {
390-
result += wiener_lcdf_defective<propto>(y_vec[i], a_vec[i], t0_vec[i], w_vec[i],
391-
v_vec[i], precision_derivatives);
390+
result += wiener_lcdf_defective<propto>(y_vec[i], a_vec[i], t0_vec[i],
391+
w_vec[i], v_vec[i],
392+
precision_derivatives);
392393
continue;
393394
}
394395
const T_partials_return y_value = y_vec.val(i);

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ TEST(mathMixFVar, wiener_lccdf_defective) {
4444
TEST_F(Wiener7MixArgs, wiener_lccdf_defective_y_a_t0) {
4545
auto f_y_a_t0 = [](const auto& w, const auto& v, const auto& sv,
4646
const auto& sw, const auto& st0) {
47-
return
48-
[&w, &v, &sv, &sw, &st0](const auto& y, const auto& a, const auto& t0) {
49-
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
50-
};
47+
return [&w, &v, &sv, &sw, &st0](const auto& y, const auto& a,
48+
const auto& t0) {
49+
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
50+
};
5151
};
5252
stan::test::expect_ad(f_y_a_t0(w, v, sv, sw, st0), y, a, t0);
5353
}

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

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,54 +5,54 @@
55
TEST_F(Wiener7MixArgs, wiener_lccdf_defective_w_v_sv) {
66
auto f_w_v_sv = [](const auto& y, const auto& a, const auto& t0,
77
const auto& sw, const auto& st0) {
8-
return
9-
[&y, &a, &t0, &sw, &st0](const auto& w, const auto& v, const auto& sv) {
10-
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
11-
};
8+
return [&y, &a, &t0, &sw, &st0](const auto& w, const auto& v,
9+
const auto& sv) {
10+
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
11+
};
1212
};
1313
stan::test::expect_ad(f_w_v_sv(y, a, t0, sw, st0), w, v, sv);
1414
}
1515

1616
TEST_F(Wiener7MixArgs, wiener_lccdf_defective_w_v_sw) {
1717
auto f_w_v_sw = [](const auto& y, const auto& a, const auto& t0,
1818
const auto& sv, const auto& st0) {
19-
return
20-
[&y, &a, &t0, &sv, &st0](const auto& w, const auto& v, const auto& sw) {
21-
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
22-
};
19+
return [&y, &a, &t0, &sv, &st0](const auto& w, const auto& v,
20+
const auto& sw) {
21+
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
22+
};
2323
};
2424
stan::test::expect_ad(f_w_v_sw(y, a, t0, sv, st0), w, v, sw);
2525
}
2626

2727
TEST_F(Wiener7MixArgs, wiener_lccdf_defective_w_v_st0) {
2828
auto f_w_v_st0 = [](const auto& y, const auto& a, const auto& t0,
2929
const auto& sv, const auto& sw) {
30-
return
31-
[&y, &a, &t0, &sv, &sw](const auto& w, const auto& v, const auto& st0) {
32-
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
33-
};
30+
return [&y, &a, &t0, &sv, &sw](const auto& w, const auto& v,
31+
const auto& st0) {
32+
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
33+
};
3434
};
3535
stan::test::expect_ad(f_w_v_st0(y, a, t0, sv, sw), w, v, st0);
3636
}
3737

3838
TEST_F(Wiener7MixArgs, wiener_lccdf_defective_w_sv_sw) {
3939
auto f_w_sv_sw = [](const auto& y, const auto& a, const auto& t0,
4040
const auto& v, const auto& st0) {
41-
return
42-
[&y, &a, &t0, &v, &st0](const auto& w, const auto& sv, const auto& sw) {
43-
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
44-
};
41+
return [&y, &a, &t0, &v, &st0](const auto& w, const auto& sv,
42+
const auto& sw) {
43+
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
44+
};
4545
};
4646
stan::test::expect_ad(f_w_sv_sw(y, a, t0, v, st0), w, sv, sw);
4747
}
4848

4949
TEST_F(Wiener7MixArgs, wiener_lccdf_defective_w_sv_st0) {
5050
auto f_w_sv_st0 = [](const auto& y, const auto& a, const auto& t0,
5151
const auto& v, const auto& sw) {
52-
return
53-
[&y, &a, &t0, &v, &sw](const auto& w, const auto& sv, const auto& st0) {
54-
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
55-
};
52+
return [&y, &a, &t0, &v, &sw](const auto& w, const auto& sv,
53+
const auto& st0) {
54+
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
55+
};
5656
};
5757
stan::test::expect_ad(f_w_sv_st0(y, a, t0, v, sw), w, sv, st0);
5858
}

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

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,54 +5,54 @@
55
TEST_F(Wiener7MixArgs, wiener_lccdf_defective_w_sw_st0) {
66
auto f_w_sw_st0 = [](const auto& y, const auto& a, const auto& t0,
77
const auto& v, const auto& sv) {
8-
return
9-
[&y, &a, &t0, &v, &sv](const auto& w, const auto& sw, const auto& st0) {
10-
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
11-
};
8+
return [&y, &a, &t0, &v, &sv](const auto& w, const auto& sw,
9+
const auto& st0) {
10+
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
11+
};
1212
};
1313
stan::test::expect_ad(f_w_sw_st0(y, a, t0, v, sv), w, sw, st0);
1414
}
1515

1616
TEST_F(Wiener7MixArgs, wiener_lccdf_defective_v_sv_sw) {
1717
auto f_v_sv_sw = [](const auto& y, const auto& a, const auto& t0,
1818
const auto& w, const auto& st0) {
19-
return
20-
[&y, &a, &t0, &w, &st0](const auto& v, const auto& sv, const auto& sw) {
21-
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
22-
};
19+
return [&y, &a, &t0, &w, &st0](const auto& v, const auto& sv,
20+
const auto& sw) {
21+
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
22+
};
2323
};
2424
stan::test::expect_ad(f_v_sv_sw(y, a, t0, w, st0), v, sv, sw);
2525
}
2626

2727
TEST_F(Wiener7MixArgs, wiener_lccdf_defective_v_sv_st0) {
2828
auto f_v_sv_st0 = [](const auto& y, const auto& a, const auto& t0,
2929
const auto& w, const auto& sw) {
30-
return
31-
[&y, &a, &t0, &w, &sw](const auto& v, const auto& sv, const auto& st0) {
32-
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
33-
};
30+
return [&y, &a, &t0, &w, &sw](const auto& v, const auto& sv,
31+
const auto& st0) {
32+
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
33+
};
3434
};
3535
stan::test::expect_ad(f_v_sv_st0(y, a, t0, w, sw), v, sv, st0);
3636
}
3737

3838
TEST_F(Wiener7MixArgs, wiener_lccdf_defective_v_sw_st0) {
3939
auto f_v_sw_st0 = [](const auto& y, const auto& a, const auto& t0,
4040
const auto& w, const auto& sv) {
41-
return
42-
[&y, &a, &t0, &w, &sv](const auto& v, const auto& sw, const auto& st0) {
43-
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
44-
};
41+
return [&y, &a, &t0, &w, &sv](const auto& v, const auto& sw,
42+
const auto& st0) {
43+
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
44+
};
4545
};
4646
stan::test::expect_ad(f_v_sw_st0(y, a, t0, w, sv), v, sw, st0);
4747
}
4848

4949
TEST_F(Wiener7MixArgs, wiener_lccdf_defective_sv_sw_st0) {
5050
auto f_sv_sw_st0 = [](const auto& y, const auto& a, const auto& t0,
5151
const auto& w, const auto& v) {
52-
return
53-
[&y, &a, &t0, &w, &v](const auto& sv, const auto& sw, const auto& st0) {
54-
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
55-
};
52+
return [&y, &a, &t0, &w, &v](const auto& sv, const auto& sw,
53+
const auto& st0) {
54+
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
55+
};
5656
};
5757
stan::test::expect_ad(f_sv_sw_st0(y, a, t0, w, v), sv, sw, st0);
5858
}

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

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,54 +5,54 @@
55
TEST_F(Wiener7MixArgs, wiener_lccdf_defective_y_a_w) {
66
auto f_y_a_w = [](const auto& t0, const auto& v, const auto& sv,
77
const auto& sw, const auto& st0) {
8-
return
9-
[&t0, &v, &sv, &sw, &st0](const auto& y, const auto& a, const auto& w) {
10-
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
11-
};
8+
return [&t0, &v, &sv, &sw, &st0](const auto& y, const auto& a,
9+
const auto& w) {
10+
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
11+
};
1212
};
1313
stan::test::expect_ad(f_y_a_w(t0, v, sv, sw, st0), y, a, w);
1414
}
1515

1616
TEST_F(Wiener7MixArgs, wiener_lccdf_defective_y_a_v) {
1717
auto f_y_a_v = [](const auto& t0, const auto& w, const auto& sv,
1818
const auto& sw, const auto& st0) {
19-
return
20-
[&t0, &w, &sv, &sw, &st0](const auto& y, const auto& a, const auto& v) {
21-
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
22-
};
19+
return [&t0, &w, &sv, &sw, &st0](const auto& y, const auto& a,
20+
const auto& v) {
21+
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
22+
};
2323
};
2424
stan::test::expect_ad(f_y_a_v(t0, w, sv, sw, st0), y, a, v);
2525
}
2626

2727
TEST_F(Wiener7MixArgs, wiener_lccdf_defective_y_a_sv) {
2828
auto f_y_a_sv = [](const auto& t0, const auto& w, const auto& v,
2929
const auto& sw, const auto& st0) {
30-
return
31-
[&t0, &w, &v, &sw, &st0](const auto& y, const auto& a, const auto& sv) {
32-
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
33-
};
30+
return [&t0, &w, &v, &sw, &st0](const auto& y, const auto& a,
31+
const auto& sv) {
32+
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
33+
};
3434
};
3535
stan::test::expect_ad(f_y_a_sv(t0, w, v, sw, st0), y, a, sv);
3636
}
3737

3838
TEST_F(Wiener7MixArgs, wiener_lccdf_defective_y_a_sw) {
3939
auto f_y_a_sw = [](const auto& t0, const auto& w, const auto& v,
4040
const auto& sv, const auto& st0) {
41-
return
42-
[&t0, &w, &v, &sv, &st0](const auto& y, const auto& a, const auto& sw) {
43-
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
44-
};
41+
return [&t0, &w, &v, &sv, &st0](const auto& y, const auto& a,
42+
const auto& sw) {
43+
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
44+
};
4545
};
4646
stan::test::expect_ad(f_y_a_sw(t0, w, v, sv, st0), y, a, sw);
4747
}
4848

4949
TEST_F(Wiener7MixArgs, wiener_lccdf_defective_y_a_st0) {
5050
auto f_y_a_st0 = [](const auto& t0, const auto& w, const auto& v,
5151
const auto& sv, const auto& sw) {
52-
return
53-
[&t0, &w, &v, &sv, &sw](const auto& y, const auto& a, const auto& st0) {
54-
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
55-
};
52+
return [&t0, &w, &v, &sv, &sw](const auto& y, const auto& a,
53+
const auto& st0) {
54+
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
55+
};
5656
};
5757
stan::test::expect_ad(f_y_a_st0(t0, w, v, sv, sw), y, a, st0);
5858
}

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

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,54 +5,54 @@
55
TEST_F(Wiener7MixArgs, wiener_lccdf_defective_y_t0_w) {
66
auto f_y_t0_w = [](const auto& a, const auto& v, const auto& sv,
77
const auto& sw, const auto& st0) {
8-
return
9-
[&a, &v, &sv, &sw, &st0](const auto& y, const auto& t0, const auto& w) {
10-
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
11-
};
8+
return [&a, &v, &sv, &sw, &st0](const auto& y, const auto& t0,
9+
const auto& w) {
10+
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
11+
};
1212
};
1313
stan::test::expect_ad(f_y_t0_w(a, v, sv, sw, st0), y, t0, w);
1414
}
1515

1616
TEST_F(Wiener7MixArgs, wiener_lccdf_defective_y_t0_v) {
1717
auto f_y_t0_v = [](const auto& a, const auto& w, const auto& sv,
1818
const auto& sw, const auto& st0) {
19-
return
20-
[&a, &w, &sv, &sw, &st0](const auto& y, const auto& t0, const auto& v) {
21-
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
22-
};
19+
return [&a, &w, &sv, &sw, &st0](const auto& y, const auto& t0,
20+
const auto& v) {
21+
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
22+
};
2323
};
2424
stan::test::expect_ad(f_y_t0_v(a, w, sv, sw, st0), y, t0, v);
2525
}
2626

2727
TEST_F(Wiener7MixArgs, wiener_lccdf_defective_y_t0_sv) {
2828
auto f_y_t0_sv = [](const auto& a, const auto& w, const auto& v,
2929
const auto& sw, const auto& st0) {
30-
return
31-
[&a, &w, &v, &sw, &st0](const auto& y, const auto& t0, const auto& sv) {
32-
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
33-
};
30+
return [&a, &w, &v, &sw, &st0](const auto& y, const auto& t0,
31+
const auto& sv) {
32+
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
33+
};
3434
};
3535
stan::test::expect_ad(f_y_t0_sv(a, w, v, sw, st0), y, t0, sv);
3636
}
3737

3838
TEST_F(Wiener7MixArgs, wiener_lccdf_defective_y_t0_sw) {
3939
auto f_y_t0_sw = [](const auto& a, const auto& w, const auto& v,
4040
const auto& sv, const auto& st0) {
41-
return
42-
[&a, &w, &v, &sv, &st0](const auto& y, const auto& t0, const auto& sw) {
43-
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
44-
};
41+
return [&a, &w, &v, &sv, &st0](const auto& y, const auto& t0,
42+
const auto& sw) {
43+
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
44+
};
4545
};
4646
stan::test::expect_ad(f_y_t0_sw(a, w, v, sv, st0), y, t0, sw);
4747
}
4848

4949
TEST_F(Wiener7MixArgs, wiener_lccdf_defective_y_t0_st0) {
5050
auto f_y_t0_st0 = [](const auto& a, const auto& w, const auto& v,
5151
const auto& sv, const auto& sw) {
52-
return
53-
[&a, &w, &v, &sv, &sw](const auto& y, const auto& t0, const auto& st0) {
54-
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
55-
};
52+
return [&a, &w, &v, &sv, &sw](const auto& y, const auto& t0,
53+
const auto& st0) {
54+
return stan::math::wiener_lccdf_defective(y, a, t0, w, v, sv, sw, st0);
55+
};
5656
};
5757
stan::test::expect_ad(f_y_t0_st0(a, w, v, sv, sw), y, t0, st0);
5858
}

0 commit comments

Comments
 (0)