Skip to content

Commit 40920f5

Browse files
committed
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
1 parent 29ea240 commit 40920f5

15 files changed

Lines changed: 70 additions & 34 deletions

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ TEST_F(AgradRev, Rev_count_vars_std_vector_eigen_matrix_var_arg) {
130130
EXPECT_EQ(30, stan::math::count_vars(arg));
131131
}
132132

133-
TEST_F(AgradRev, Rev_count_vars_zero_args) { EXPECT_EQ(0, stan::math::count_vars()); }
133+
TEST_F(AgradRev, Rev_count_vars_zero_args) {
134+
EXPECT_EQ(0, stan::math::count_vars());
135+
}
134136

135137
TEST_F(AgradRev, Rev_count_vars_sum) {
136138
int arg1 = 1;

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ TEST_F(AgradRev, StanAgradRevInternal_precomputed_gradients) {
3232
stan::math::recover_memory();
3333
}
3434

35-
TEST_F(AgradRev, StanAgradRevInternal_precomputed_gradients_vari_no_independent_vars) {
35+
TEST_F(AgradRev,
36+
StanAgradRevInternal_precomputed_gradients_vari_no_independent_vars) {
3637
double value = 1;
3738
std::vector<stan::math::var> vars;
3839
std::vector<double> gradients;
@@ -43,7 +44,8 @@ TEST_F(AgradRev, StanAgradRevInternal_precomputed_gradients_vari_no_independent_
4344
EXPECT_NO_THROW(vi.chain());
4445
}
4546

46-
TEST_F(AgradRev, StanAgradRevInternal_precomputed_gradients_vari_mismatched_sizes) {
47+
TEST_F(AgradRev,
48+
StanAgradRevInternal_precomputed_gradients_vari_mismatched_sizes) {
4749
double value;
4850
std::vector<stan::math::var> vars;
4951
std::vector<double> gradients;
@@ -161,7 +163,8 @@ TEST(StanAgradRevInternal,
161163
stan::math::recover_memory();
162164
}
163165

164-
TEST_F(AgradRev, StanAgradRevInternal_precomputed_gradients_mismatched_containers) {
166+
TEST_F(AgradRev,
167+
StanAgradRevInternal_precomputed_gradients_mismatched_containers) {
165168
double value = 1;
166169
std::vector<stan::math::var> vars;
167170
std::vector<double> gradients;

test/unit/math/rev/err/check_consistent_sizes_test.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
#include <gtest/gtest.h>
44
#include <vector>
55

6-
TEST_F(AgradRev, RevErrorHandlingScalar_CheckConsistentSizesVarCheckVectorized) {
6+
TEST_F(AgradRev,
7+
RevErrorHandlingScalar_CheckConsistentSizesVarCheckVectorized) {
78
using stan::math::check_consistent_sizes;
89
using stan::math::var;
910
using std::vector;

test/unit/math/rev/fun/as_value_column_array_or_scalar_test.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ TEST_F(AgradRev, MathFunRev_as_value_column_array_or_scalar_vector_lvalue) {
5151
EXPECT_MATRIX_EQ(res, a_val);
5252
}
5353

54-
TEST_F(AgradRev, MathFunRev_as_value_column_array_or_scalar_const_rowvector_lvalue) {
54+
TEST_F(AgradRev,
55+
MathFunRev_as_value_column_array_or_scalar_const_rowvector_lvalue) {
5556
int n = 100;
5657
const Eigen::RowVectorXd a_val = Eigen::RowVectorXd::Random(n);
5758
Eigen::Matrix<stan::math::var, 1, -1> a(a_val);
@@ -85,7 +86,8 @@ TEST_F(AgradRev, MathFunRev_as_value_column_array_or_scalar_var_value_vector) {
8586
EXPECT_MATRIX_EQ(res, a_val);
8687
}
8788

88-
TEST_F(AgradRev, MathFunRev_as_value_column_array_or_scalar_var_value_row_vector) {
89+
TEST_F(AgradRev,
90+
MathFunRev_as_value_column_array_or_scalar_var_value_row_vector) {
8991
int n = 100;
9092
const Eigen::RowVectorXd a_val = Eigen::VectorXd::Random(n);
9193
stan::math::var_value<Eigen::RowVectorXd> a(a_val);

test/unit/math/rev/fun/as_value_column_vector_or_scalar_test.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ TEST_F(AgradRev, MathFunRev_as_value_column_vector_or_scalar_scalar) {
1010
EXPECT_EQ(b_val, stan::math::as_value_column_vector_or_scalar(b));
1111
}
1212

13-
TEST_F(AgradRev, MathFunRev_as_value_column_vector_or_scalar_std_vector_lvalue) {
13+
TEST_F(AgradRev,
14+
MathFunRev_as_value_column_vector_or_scalar_std_vector_lvalue) {
1415
int n = 100;
1516
Eigen::VectorXd a_val = Eigen::VectorXd::Random(n);
1617
std::vector<double> b_val(n);
@@ -24,7 +25,8 @@ TEST_F(AgradRev, MathFunRev_as_value_column_vector_or_scalar_std_vector_lvalue)
2425
EXPECT_MATRIX_EQ(res, a_val);
2526
}
2627

27-
TEST_F(AgradRev, MathFunRev_as_value_column_vector_or_scalar_std_vector_rvalue) {
28+
TEST_F(AgradRev,
29+
MathFunRev_as_value_column_vector_or_scalar_std_vector_rvalue) {
2830
int n = 100;
2931
Eigen::VectorXd a_val = Eigen::VectorXd::Random(n);
3032
std::vector<double> b_val(n);
@@ -48,7 +50,8 @@ TEST_F(AgradRev, MathFunRev_as_value_column_vector_or_scalar_vector_lvalue) {
4850
EXPECT_MATRIX_EQ(res, a_val);
4951
}
5052

51-
TEST_F(AgradRev, MathFunRev_as_value_column_vector_or_scalar_const_rowvector_lvalue) {
53+
TEST_F(AgradRev,
54+
MathFunRev_as_value_column_vector_or_scalar_const_rowvector_lvalue) {
5255
int n = 100;
5356
const Eigen::RowVectorXd a_val = Eigen::RowVectorXd::Random(n);
5457
Eigen::Matrix<stan::math::var, 1, -1> a(a_val);
@@ -79,7 +82,8 @@ TEST_F(AgradRev, MathFunRev_as_value_column_vector_or_scalar_var_value_vector) {
7982
EXPECT_MATRIX_EQ(res, a_val);
8083
}
8184

82-
TEST_F(AgradRev, MathFunRev_as_value_column_vector_or_scalar_var_value_row_vector) {
85+
TEST_F(AgradRev,
86+
MathFunRev_as_value_column_vector_or_scalar_var_value_row_vector) {
8387
int n = 100;
8488
const Eigen::RowVectorXd a_val = Eigen::VectorXd::Random(n);
8589
stan::math::var_value<Eigen::RowVectorXd> a(a_val);

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,8 @@ TEST_F(AgradRev, StanMath_integrate_1d_impl_rev_TestDerivatives_no_param_vars) {
310310
{}, -19.06340613646808, 21.41380852375568);
311311
}
312312

313-
TEST_F(AgradRev, StanMath_integrate_1d_impl_rev_TestDerivatives_left_limit_var) {
313+
TEST_F(AgradRev,
314+
StanMath_integrate_1d_impl_rev_TestDerivatives_left_limit_var) {
314315
// No param vars, only left limit var
315316
using stan::math::var;
316317
test_derivatives<var, double, double>(f3{}, -1.0, 1.0, {0.5, 1.75, 3.9},
@@ -320,7 +321,8 @@ TEST_F(AgradRev, StanMath_integrate_1d_impl_rev_TestDerivatives_left_limit_var)
320321
{}, -19.06340613646808, 0.0);
321322
}
322323

323-
TEST_F(AgradRev, StanMath_integrate_1d_impl_rev_TestDerivatives_right_limit_var) {
324+
TEST_F(AgradRev,
325+
StanMath_integrate_1d_impl_rev_TestDerivatives_right_limit_var) {
324326
// No param vars, only right limit var
325327
using stan::math::var;
326328
test_derivatives<double, var, double>(f3{}, -1.0, 1.0, {0.5, 1.75, 3.9},
@@ -355,7 +357,8 @@ TEST_F(AgradRev, StanMath_integrate_1d_impl_rev_TestDerivatives_tricky3) {
355357
f6{}, 0.0, 1.0, {0.75}, {}, {}, 0.851926727945904, {0.4814066053874294});
356358
}
357359

358-
TEST_F(AgradRev, StanMath_integrate_1d_impl_rev_TestDerivatives_zero_crossing2) {
360+
TEST_F(AgradRev,
361+
StanMath_integrate_1d_impl_rev_TestDerivatives_zero_crossing2) {
359362
// Zero crossing integral + limit at infinity + var at left limit
360363
using stan::math::var;
361364
test_derivatives<var, double, var>(
@@ -364,7 +367,8 @@ TEST_F(AgradRev, StanMath_integrate_1d_impl_rev_TestDerivatives_zero_crossing2)
364367
std::numeric_limits<double>::quiet_NaN());
365368
}
366369

367-
TEST_F(AgradRev, StanMath_integrate_1d_impl_rev_TestDerivatives_zero_crossing3) {
370+
TEST_F(AgradRev,
371+
StanMath_integrate_1d_impl_rev_TestDerivatives_zero_crossing3) {
368372
// Zero crossing integral + limit at negative infinity + var at right limit
369373
using stan::math::var;
370374
test_derivatives<double, var, var>(
@@ -382,7 +386,8 @@ TEST_F(AgradRev, StanMath_integrate_1d_impl_rev_TestDerivatives_indefinite) {
382386
2.536571480364399, {});
383387
}
384388

385-
TEST_F(AgradRev, StanMath_integrate_1d_impl_rev_TestDerivatives_endpoint_precision) {
389+
TEST_F(AgradRev,
390+
StanMath_integrate_1d_impl_rev_TestDerivatives_endpoint_precision) {
386391
// Various integrals of beta function
387392
using stan::math::var;
388393
test_derivatives<double, double, var>(f11{}, 0.0, 1.0, {0.1, 0.1}, {}, {},

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,9 @@ TEST_F(AgradRev, StanMath_integrate_1d_rev_TestDerivatives_zero_crossing) {
276276
-19.06340613646808, 21.41380852375568);
277277
}
278278

279-
TEST_F(AgradRev, StanMath_integrate_1d_rev_TestDerivatives_var_right_endpoint_var_params) {
279+
TEST_F(
280+
AgradRev,
281+
StanMath_integrate_1d_rev_TestDerivatives_var_right_endpoint_var_params) {
280282
// Zero crossing integral + test x_r + vars at right endpoint
281283
using stan::math::var;
282284
test_derivatives<double, var, var>(
@@ -286,7 +288,8 @@ TEST_F(AgradRev, StanMath_integrate_1d_rev_TestDerivatives_var_right_endpoint_va
286288
{5 * pow(0.5, 1.5), 12 * 1.75 * 1.75, 4.0}, 0.0, 21.41380852375568);
287289
}
288290

289-
TEST_F(AgradRev, StanMath_integrate_1d_rev_TestDerivatives_var_left_endpoint_var_params) {
291+
TEST_F(AgradRev,
292+
StanMath_integrate_1d_rev_TestDerivatives_var_left_endpoint_var_params) {
290293
// Zero crossing integral + test x_r + var at left endpoint
291294
using stan::math::var;
292295
test_derivatives<var, double, var>(
@@ -407,7 +410,8 @@ TEST_F(AgradRev, StanMath_integrate_1d_rev_TestDerivatives_gaussian) {
407410
{0.0, 0.0});
408411
}
409412

410-
TEST_F(AgradRev, StanMath_integrate_1d_rev_TestDerivativesSameVarAtEndpointAndInParams) {
413+
TEST_F(AgradRev,
414+
StanMath_integrate_1d_rev_TestDerivativesSameVarAtEndpointAndInParams) {
411415
using stan::math::var;
412416

413417
var a = 2.0;

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77

88
// We check that the values of the new regression match those of one built
99
// from existing primitives.
10-
TEST_F(AgradRev, ProbDistributionsBernoulliLogitGLM_glm_matches_bernoulli_logit_doubles) {
10+
TEST_F(AgradRev,
11+
ProbDistributionsBernoulliLogitGLM_glm_matches_bernoulli_logit_doubles) {
1112
using Eigen::Dynamic;
1213
using Eigen::Matrix;
1314
using stan::math::var;
@@ -31,7 +32,9 @@ TEST_F(AgradRev, ProbDistributionsBernoulliLogitGLM_glm_matches_bernoulli_logit_
3132

3233
// We check that the values of the new regression match those of one built
3334
// from existing primitives.
34-
TEST_F(AgradRev, ProbDistributionsBernoulliLogitGLM_glm_matches_bernoulli_logit_doubles_rand) {
35+
TEST_F(
36+
AgradRev,
37+
ProbDistributionsBernoulliLogitGLM_glm_matches_bernoulli_logit_doubles_rand) {
3538
using Eigen::Dynamic;
3639
using Eigen::Matrix;
3740
using stan::math::var;
@@ -159,7 +162,7 @@ TYPED_TEST(ProbDistributionsBernoulliLogitGLM, broadcast_x) {
159162
EXPECT_DOUBLE_EQ(alpha1.adj(), alpha2.adj());
160163
}
161164

162-
TYPED_TEST(ProbDistributionsBernoulliLogitGLM,broadcast_y) {
165+
TYPED_TEST(ProbDistributionsBernoulliLogitGLM, broadcast_y) {
163166
using Eigen::Dynamic;
164167
using Eigen::Matrix;
165168
using stan::math::var;

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ TEST_F(AgradRev, ProbDistributionsMultiGPCholesky_MultiGPCholeskyVar) {
7070
stan::math::multi_gp_cholesky_lpdf(y, L, w).val());
7171
}
7272

73-
TEST_F(AgradRev, ProbDistributionsMultiGPCholesky_MultiGPCholeskyGradientUnivariate) {
73+
TEST_F(AgradRev,
74+
ProbDistributionsMultiGPCholesky_MultiGPCholeskyGradientUnivariate) {
7475
using Eigen::Dynamic;
7576
using Eigen::Matrix;
7677
using Eigen::VectorXd;

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,8 @@ void test_all_multi_normal_cholesky() {
283283
}
284284
}
285285

286-
TEST_F(AgradRev, ProbDistributionsMultiNormalCholesky2_TestGradFunctionalVectorized) {
286+
TEST_F(AgradRev,
287+
ProbDistributionsMultiNormalCholesky2_TestGradFunctionalVectorized) {
287288
test_all_multi_normal_cholesky<1, 1>();
288289
test_all_multi_normal_cholesky<1, -1>();
289290
test_all_multi_normal_cholesky<-1, 1>();

0 commit comments

Comments
 (0)