From 3f065fa41627de7c6e290070d4be366415532453 Mon Sep 17 00:00:00 2001 From: Stan Jenkins Date: Mon, 11 Nov 2024 11:44:41 -0500 Subject: [PATCH] [Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1 --- stan/math/prim/meta/is_eigen.hpp | 2 +- test/unit/math/prim/meta/value_type_test.cpp | 21 ++++++++++---------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/stan/math/prim/meta/is_eigen.hpp b/stan/math/prim/meta/is_eigen.hpp index ee0e5a00317..2222ac6e063 100644 --- a/stan/math/prim/meta/is_eigen.hpp +++ b/stan/math/prim/meta/is_eigen.hpp @@ -41,7 +41,7 @@ struct scalar_type::value>> { */ template struct value_type::value>> { - using type = typename Eigen::internal::traits>::Scalar; + using type = typename Eigen::internal::traits>::Scalar; }; /*! \ingroup require_eigens_types */ diff --git a/test/unit/math/prim/meta/value_type_test.cpp b/test/unit/math/prim/meta/value_type_test.cpp index 400e4009ac9..018aba6467d 100644 --- a/test/unit/math/prim/meta/value_type_test.cpp +++ b/test/unit/math/prim/meta/value_type_test.cpp @@ -9,16 +9,16 @@ TEST(MathMetaPrim, value_type_vector) { using std::vector; EXPECT_SAME_TYPE(vector::value_type, - value_type >::type); + value_type>::type); EXPECT_SAME_TYPE(vector::value_type, - value_type >::type); + value_type>::type); - EXPECT_SAME_TYPE(vector >::value_type, - value_type > >::type); + EXPECT_SAME_TYPE(vector>::value_type, + value_type>>::type); - EXPECT_SAME_TYPE(vector >::value_type, - value_type > >::type); + EXPECT_SAME_TYPE(vector>::value_type, + value_type>>::type); } TEST(MathMetaPrim, value_type_matrix) { @@ -34,13 +34,14 @@ TEST(MathMetaPrim, value_type_matrix) { value_type::type); EXPECT_SAME_TYPE(Eigen::RowVectorXd, - value_type >::type); + value_type>::type); } TEST(MathMetaPrim, value_type_kronecker) { - Eigen::Matrix A; - const auto B = Eigen::kroneckerProduct(A, Eigen::Matrix::Identity()); - Eigen::Matrix C = Eigen::Matrix::Random(4, 1); + Eigen::Matrix A; + const auto B + = Eigen::kroneckerProduct(A, Eigen::Matrix::Identity()); + Eigen::Matrix C = Eigen::Matrix::Random(4, 1); EXPECT_TRUE((std::is_same>::value)); Eigen::MatrixXd D = B * C; }