Skip to content

Commit d1c7701

Browse files
committed
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
1 parent 0e2b370 commit d1c7701

6 files changed

Lines changed: 20 additions & 38 deletions

test/unit/math/rev/core/precomputed_gradients_test.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,7 @@ TEST_F(AgradRev, StanAgradRevInternal_precomputed_gradients_containers) {
131131
stan::math::recover_memory();
132132
}
133133

134-
TEST_F(AgradRev,
135-
precomputed_gradients_containers_direct_construction) {
134+
TEST_F(AgradRev, precomputed_gradients_containers_direct_construction) {
136135
double value = 1;
137136
std::vector<stan::math::var> vars;
138137
std::vector<double> gradients;

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

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,8 @@ TEST_F(AgradRev, integrate_1d_impl_rev_TestDerivatives_zero_crossing) {
278278
-19.06340613646808, 21.41380852375568);
279279
}
280280

281-
TEST_F(
282-
AgradRev,
283-
integrate_1d_impl_rev_TestDerivatives_var_right_endpoint_var_params) {
281+
TEST_F(AgradRev,
282+
integrate_1d_impl_rev_TestDerivatives_var_right_endpoint_var_params) {
284283
// Zero crossing integral + test x_r + vars at right endpoint
285284
using stan::math::var;
286285
test_derivatives<double, var, var>(
@@ -290,9 +289,8 @@ TEST_F(
290289
{5 * pow(0.5, 1.5), 12 * 1.75 * 1.75, 4.0}, 0.0, 21.41380852375568);
291290
}
292291

293-
TEST_F(
294-
AgradRev,
295-
integrate_1d_impl_rev_TestDerivatives_var_left_endpoint_var_params) {
292+
TEST_F(AgradRev,
293+
integrate_1d_impl_rev_TestDerivatives_var_left_endpoint_var_params) {
296294
// Zero crossing integral + test x_r + var at left endpoint
297295
using stan::math::var;
298296
test_derivatives<var, double, var>(
@@ -312,8 +310,7 @@ TEST_F(AgradRev, integrate_1d_impl_rev_TestDerivatives_no_param_vars) {
312310
{}, -19.06340613646808, 21.41380852375568);
313311
}
314312

315-
TEST_F(AgradRev,
316-
integrate_1d_impl_rev_TestDerivatives_left_limit_var) {
313+
TEST_F(AgradRev, integrate_1d_impl_rev_TestDerivatives_left_limit_var) {
317314
// No param vars, only left limit var
318315
using stan::math::var;
319316
test_derivatives<var, double, double>(f3{}, -1.0, 1.0, {0.5, 1.75, 3.9},
@@ -323,8 +320,7 @@ TEST_F(AgradRev,
323320
{}, -19.06340613646808, 0.0);
324321
}
325322

326-
TEST_F(AgradRev,
327-
integrate_1d_impl_rev_TestDerivatives_right_limit_var) {
323+
TEST_F(AgradRev, integrate_1d_impl_rev_TestDerivatives_right_limit_var) {
328324
// No param vars, only right limit var
329325
using stan::math::var;
330326
test_derivatives<double, var, double>(f3{}, -1.0, 1.0, {0.5, 1.75, 3.9},
@@ -359,8 +355,7 @@ TEST_F(AgradRev, integrate_1d_impl_rev_TestDerivatives_tricky3) {
359355
f6{}, 0.0, 1.0, {0.75}, {}, {}, 0.851926727945904, {0.4814066053874294});
360356
}
361357

362-
TEST_F(AgradRev,
363-
integrate_1d_impl_rev_TestDerivatives_zero_crossing2) {
358+
TEST_F(AgradRev, integrate_1d_impl_rev_TestDerivatives_zero_crossing2) {
364359
// Zero crossing integral + limit at infinity + var at left limit
365360
using stan::math::var;
366361
test_derivatives<var, double, var>(
@@ -369,8 +364,7 @@ TEST_F(AgradRev,
369364
std::numeric_limits<double>::quiet_NaN());
370365
}
371366

372-
TEST_F(AgradRev,
373-
integrate_1d_impl_rev_TestDerivatives_zero_crossing3) {
367+
TEST_F(AgradRev, integrate_1d_impl_rev_TestDerivatives_zero_crossing3) {
374368
// Zero crossing integral + limit at negative infinity + var at right limit
375369
using stan::math::var;
376370
test_derivatives<double, var, var>(
@@ -388,8 +382,7 @@ TEST_F(AgradRev, integrate_1d_impl_rev_TestDerivatives_indefinite) {
388382
2.536571480364399, {});
389383
}
390384

391-
TEST_F(AgradRev,
392-
integrate_1d_impl_rev_TestDerivatives_endpoint_precision) {
385+
TEST_F(AgradRev, integrate_1d_impl_rev_TestDerivatives_endpoint_precision) {
393386
// Various integrals of beta function
394387
using stan::math::var;
395388
test_derivatives<double, double, var>(f11{}, 0.0, 1.0, {0.1, 0.1}, {}, {},

test/unit/math/rev/prob/categorical_logit_glm_lpmf_test.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ categorical_logit_glm_simple_lpmf(const std::vector<int>& y, const T_x& x,
3030
return lpmf;
3131
}
3232

33-
TEST_F(
34-
AgradRev,
35-
CategoricalLogitGLM_glm_matches_categorical_logit_doubles) {
33+
TEST_F(AgradRev, CategoricalLogitGLM_glm_matches_categorical_logit_doubles) {
3634
using Eigen::Dynamic;
3735
using Eigen::Matrix;
3836
using Eigen::MatrixXd;

test/unit/math/rev/prob/neg_binomial_2_log_glm_lpmf_test.cpp

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77

88
// We check that the values of the new regression match those of one built
99
// from existing primitives.
10-
TEST_F(
11-
AgradRev,
12-
NegBinomial2LogGLM_glm_matches_neg_binomial_2_log_doubles) {
10+
TEST_F(AgradRev, NegBinomial2LogGLM_glm_matches_neg_binomial_2_log_doubles) {
1311
using Eigen::Dynamic;
1412
using Eigen::Matrix;
1513
using stan::math::var;
@@ -33,9 +31,8 @@ TEST_F(
3331
}
3432
// We check that the values of the new regression match those of one built
3533
// from existing primitives.
36-
TEST_F(
37-
AgradRev,
38-
NegBinomial2LogGLM_glm_matches_neg_binomial_2_log_doubles_rand) {
34+
TEST_F(AgradRev,
35+
NegBinomial2LogGLM_glm_matches_neg_binomial_2_log_doubles_rand) {
3936
using Eigen::Dynamic;
4037
using Eigen::Matrix;
4138
using stan::math::var;
@@ -543,9 +540,8 @@ TYPED_TEST(ProbDistributionsNegBinomial2LogGLM,
543540
}
544541

545542
// We check that the right errors are thrown.
546-
TEST_F(
547-
AgradRev,
548-
NegBinomial2LogGLM_glm_matches_neg_binomial_2_log_error_checking) {
543+
TEST_F(AgradRev,
544+
NegBinomial2LogGLM_glm_matches_neg_binomial_2_log_error_checking) {
549545
using Eigen::Dynamic;
550546
using Eigen::Matrix;
551547
using stan::math::var;

test/unit/math/rev/prob/ordered_logistic_glm_lpmf_test.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ ordered_logistic_glm_simple_lpmf(const std::vector<int>& y, T_x&& x,
1414
return stan::math::ordered_logistic_lpmf<propto>(y, location, cuts);
1515
}
1616

17-
TEST_F(
18-
AgradRev,
19-
OrderedLogisticGLM_glm_matches_ordered_logistic_doubles) {
17+
TEST_F(AgradRev, OrderedLogisticGLM_glm_matches_ordered_logistic_doubles) {
2018
using Eigen::MatrixXd;
2119
using Eigen::VectorXd;
2220
using std::vector;
@@ -34,9 +32,8 @@ TEST_F(
3432
ordered_logistic_glm_simple_lpmf<false>(y, x, beta, cuts));
3533
}
3634

37-
TEST_F(
38-
AgradRev,
39-
OrderedLogisticGLM_glm_matches_ordered_logistic_doubles_broadcast_y) {
35+
TEST_F(AgradRev,
36+
OrderedLogisticGLM_glm_matches_ordered_logistic_doubles_broadcast_y) {
4037
using Eigen::MatrixXd;
4138
using Eigen::VectorXd;
4239
using std::vector;

test/unit/math/rev/prob/skew_double_exponential_ccdf_log_test.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ inline auto skew_de_ccdf_test(const T1& y, const T2& mu, const T3& sigma,
2626
}
2727
}
2828

29-
TEST_F(AgradRev,
30-
SkewedDoubleExponential_lccdf_computes_correct_gradients) {
29+
TEST_F(AgradRev, SkewedDoubleExponential_lccdf_computes_correct_gradients) {
3130
using stan::math::skew_double_exponential_lccdf;
3231

3332
for (double ys : {-1.7, 0.2, 0.5, 0.9, 1.1, 3.2, 8.3}) {

0 commit comments

Comments
 (0)