Skip to content

Commit 3f065fa

Browse files
committed
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
1 parent 39e9930 commit 3f065fa

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

stan/math/prim/meta/is_eigen.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ struct scalar_type<T, std::enable_if_t<is_eigen<T>::value>> {
4141
*/
4242
template <typename T>
4343
struct value_type<T, std::enable_if_t<is_eigen<T>::value>> {
44-
using type = typename Eigen::internal::traits<std::decay_t<T>>::Scalar;
44+
using type = typename Eigen::internal::traits<std::decay_t<T>>::Scalar;
4545
};
4646

4747
/*! \ingroup require_eigens_types */

test/unit/math/prim/meta/value_type_test.cpp

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ TEST(MathMetaPrim, value_type_vector) {
99
using std::vector;
1010

1111
EXPECT_SAME_TYPE(vector<double>::value_type,
12-
value_type<vector<double> >::type);
12+
value_type<vector<double>>::type);
1313

1414
EXPECT_SAME_TYPE(vector<double>::value_type,
15-
value_type<const vector<double> >::type);
15+
value_type<const vector<double>>::type);
1616

17-
EXPECT_SAME_TYPE(vector<vector<int> >::value_type,
18-
value_type<vector<vector<int> > >::type);
17+
EXPECT_SAME_TYPE(vector<vector<int>>::value_type,
18+
value_type<vector<vector<int>>>::type);
1919

20-
EXPECT_SAME_TYPE(vector<vector<int> >::value_type,
21-
value_type<const vector<vector<int> > >::type);
20+
EXPECT_SAME_TYPE(vector<vector<int>>::value_type,
21+
value_type<const vector<vector<int>>>::type);
2222
}
2323

2424
TEST(MathMetaPrim, value_type_matrix) {
@@ -34,13 +34,14 @@ TEST(MathMetaPrim, value_type_matrix) {
3434
value_type<Eigen::RowVectorXd>::type);
3535

3636
EXPECT_SAME_TYPE(Eigen::RowVectorXd,
37-
value_type<std::vector<Eigen::RowVectorXd> >::type);
37+
value_type<std::vector<Eigen::RowVectorXd>>::type);
3838
}
3939

4040
TEST(MathMetaPrim, value_type_kronecker) {
41-
Eigen::Matrix<double,2,2> A;
42-
const auto B = Eigen::kroneckerProduct(A, Eigen::Matrix<double,2,2>::Identity());
43-
Eigen::Matrix<double,4,1> C = Eigen::Matrix<double,4,1>::Random(4, 1);
41+
Eigen::Matrix<double, 2, 2> A;
42+
const auto B
43+
= Eigen::kroneckerProduct(A, Eigen::Matrix<double, 2, 2>::Identity());
44+
Eigen::Matrix<double, 4, 1> C = Eigen::Matrix<double, 4, 1>::Random(4, 1);
4445
EXPECT_TRUE((std::is_same<double, stan::value_type_t<decltype(B)>>::value));
4546
Eigen::MatrixXd D = B * C;
4647
}

0 commit comments

Comments
 (0)