Skip to content

Commit 707eba3

Browse files
committed
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
1 parent 84319ae commit 707eba3

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

test/prob/geometric/geometric_cdf_test.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ class AgradCdfGeometric : public AgradCdfTest {
5353
template <class T_n, class T_prob, typename T2, typename T3, typename T4,
5454
typename T5>
5555
stan::return_type_t<T_n, T_prob> cdf_function(const T_n& n,
56-
const T_prob& theta,
57-
const T2&, const T3&,
58-
const T4&, const T5&) {
56+
const T_prob& theta, const T2&,
57+
const T3&, const T4&,
58+
const T5&) {
5959
using stan::math::log1m;
6060
return 1.0 - stan::math::exp((n + 1.0) * log1m(theta));
6161
}

test/prob/geometric/geometric_test.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,25 +47,25 @@ class AgradDistributionsGeometric : public AgradDistributionTest {
4747
template <class T_n, class T_prob, typename T2, typename T3, typename T4,
4848
typename T5>
4949
stan::return_type_t<T_prob> log_prob(const T_n& n, const T_prob& theta,
50-
const T2&, const T3&, const T4&,
51-
const T5&) {
50+
const T2&, const T3&, const T4&,
51+
const T5&) {
5252
return stan::math::geometric_lpmf(n, theta);
5353
}
5454

5555
template <bool propto, class T_n, class T_prob, typename T2, typename T3,
5656
typename T4, typename T5>
5757
stan::return_type_t<T_prob> log_prob(const T_n& n, const T_prob& theta,
58-
const T2&, const T3&, const T4&,
59-
const T5&) {
58+
const T2&, const T3&, const T4&,
59+
const T5&) {
6060
return stan::math::geometric_lpmf<propto>(n, theta);
6161
}
6262

6363
template <class T_n, class T_prob, typename T2, typename T3, typename T4,
6464
typename T5>
6565
stan::return_type_t<T_prob> log_prob_function(const T_n& n,
66-
const T_prob& theta,
67-
const T2&, const T3&,
68-
const T4&, const T5&) {
66+
const T_prob& theta, const T2&,
67+
const T3&, const T4&,
68+
const T5&) {
6969
using stan::math::log1m;
7070
using std::log;
7171
return log(theta) + n * log1m(theta);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class GeometricTestRig : public VectorIntRNGTestRig {
1111
public:
1212
GeometricTestRig()
1313
: VectorIntRNGTestRig(10000, 10, {0, 1, 2, 3, 4, 5, 6, 7, 8, 9},
14-
{0.1, 0.3, 0.5, 0.7, 0.9}, {1},
15-
{-0.1, 1.1}, {-1, 0, 2}) {}
14+
{0.1, 0.3, 0.5, 0.7, 0.9}, {1}, {-0.1, 1.1},
15+
{-1, 0, 2}) {}
1616

1717
template <typename T1, typename T2, typename T3, typename T_rng>
1818
auto generate_samples(const T1& theta, const T2&, const T3&,

0 commit comments

Comments
 (0)