@@ -32,8 +32,8 @@ TEST(MathMatrixPrimArr, eval) {
3232TEST (MathFunctions, eval_int_return_type_short_circuit) {
3333 std::vector<int > a (5 , 0 );
3434 const std::vector<int > b (5 , 0 );
35- EXPECT_TRUE ((std::is_same< decltype ( stan::math::eval (a)),
36- std::vector<int >&>::value));
35+ EXPECT_TRUE (
36+ (std::is_same< decltype ( stan::math::eval (a)), std::vector<int >&>::value));
3737 EXPECT_TRUE ((std::is_same<decltype (stan::math::eval (b)),
3838 const std::vector<int >&>::value));
3939}
@@ -150,8 +150,9 @@ TEST(MathFunctions, eval_return_type_short_circuit_vector_xd) {
150150 Eigen::Matrix<double , Eigen::Dynamic, 1 > a (5 );
151151 const Eigen::Matrix<double , Eigen::Dynamic, 1 > b (5 );
152152 stan::math::eval (a);
153- EXPECT_TRUE ((std::is_same<decltype (stan::math::eval (a)),
154- const Eigen::Matrix<double , Eigen::Dynamic, 1 >&>::value));
153+ EXPECT_TRUE (
154+ (std::is_same<decltype (stan::math::eval (a)),
155+ const Eigen::Matrix<double , Eigen::Dynamic, 1 >&>::value));
155156 EXPECT_TRUE (
156157 (std::is_same<decltype (stan::math::eval (b)),
157158 const Eigen::Matrix<double , Eigen::Dynamic, 1 >&>::value));
@@ -160,8 +161,9 @@ TEST(MathFunctions, eval_return_type_short_circuit_vector_xd) {
160161TEST (MathFunctions, eval_return_type_short_circuit_row_vector_xd) {
161162 Eigen::Matrix<double , 1 , Eigen::Dynamic> a (5 );
162163 const Eigen::Matrix<double , 1 , Eigen::Dynamic> b (5 );
163- EXPECT_TRUE ((std::is_same<decltype (stan::math::eval (a)),
164- const Eigen::Matrix<double , 1 , Eigen::Dynamic>&>::value));
164+ EXPECT_TRUE (
165+ (std::is_same<decltype (stan::math::eval (a)),
166+ const Eigen::Matrix<double , 1 , Eigen::Dynamic>&>::value));
165167 EXPECT_TRUE (
166168 (std::is_same<decltype (stan::math::eval (b)),
167169 const Eigen::Matrix<double , 1 , Eigen::Dynamic>&>::value));
@@ -170,9 +172,9 @@ TEST(MathFunctions, eval_return_type_short_circuit_row_vector_xd) {
170172TEST (MathFunctions, eval_return_type_short_circuit_matrix_xd) {
171173 Eigen::Matrix<double , Eigen::Dynamic, Eigen::Dynamic> a (5 , 4 );
172174 const Eigen::Matrix<double , Eigen::Dynamic, Eigen::Dynamic> b (5 , 4 );
173- EXPECT_TRUE ((std::is_same<
174- decltype ( stan::math::eval (a)) ,
175- const Eigen::Matrix< double , Eigen::Dynamic, Eigen::Dynamic>&>::value));
175+ EXPECT_TRUE ((std::is_same<decltype ( stan::math::eval (a)),
176+ const Eigen::Matrix< double , Eigen::Dynamic ,
177+ Eigen::Dynamic>&>::value));
176178 EXPECT_TRUE ((std::is_same<decltype (stan::math::eval (b)),
177179 const Eigen::Matrix<double , Eigen::Dynamic,
178180 Eigen::Dynamic>&>::value));
@@ -185,18 +187,21 @@ TEST(MathFunctions, eval_return_type_expression) {
185187 const auto & expr_a = 3 * a;
186188 auto expr_b = b * b;
187189
188- EXPECT_TRUE ((std::is_same<decltype (stan::math::eval (expr_a)),
189- const Eigen::Matrix<double , Eigen::Dynamic, Eigen::Dynamic>>::value));
190- EXPECT_TRUE ((std::is_same<decltype (stan::math::eval (expr_b)),
191- const Eigen::Matrix<double , Eigen::Dynamic, Eigen::Dynamic>>::value));
190+ EXPECT_TRUE (
191+ (std::is_same<
192+ decltype (stan::math::eval (expr_a)),
193+ const Eigen::Matrix<double , Eigen::Dynamic, Eigen::Dynamic>>::value));
194+ EXPECT_TRUE (
195+ (std::is_same<
196+ decltype (stan::math::eval (expr_b)),
197+ const Eigen::Matrix<double , Eigen::Dynamic, Eigen::Dynamic>>::value));
192198}
193199
194200TEST (MathFunctions, eval_return_type_short_circuit_static_sized_matrix) {
195201 Eigen::Matrix<double , 5 , 4 > a;
196202 const Eigen::Matrix<double , 5 , 4 > b;
197203 EXPECT_TRUE ((std::is_same<decltype (stan::math::eval (a)),
198- const Eigen::Matrix<double , 5 , 4 >&>::value));
204+ const Eigen::Matrix<double , 5 , 4 >&>::value));
199205 EXPECT_TRUE ((std::is_same<decltype (stan::math::eval (b)),
200- const Eigen::Matrix<double , 5 , 4 >&>::value));
206+ const Eigen::Matrix<double , 5 , 4 >&>::value));
201207}
202-
0 commit comments