@@ -149,10 +149,9 @@ TEST(MathFunctions, eval_return_type_short_circuit_std_vector) {
149149TEST (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 );
152- stan::math::eval (a);
153152 EXPECT_TRUE (
154153 (std::is_same<decltype (stan::math::eval (a)),
155- const Eigen::Matrix<double , Eigen::Dynamic, 1 >&>::value));
154+ Eigen::Matrix<double , Eigen::Dynamic, 1 >&>::value));
156155 EXPECT_TRUE (
157156 (std::is_same<decltype (stan::math::eval (b)),
158157 const Eigen::Matrix<double , Eigen::Dynamic, 1 >&>::value));
@@ -163,7 +162,7 @@ TEST(MathFunctions, eval_return_type_short_circuit_row_vector_xd) {
163162 const Eigen::Matrix<double , 1 , Eigen::Dynamic> b (5 );
164163 EXPECT_TRUE (
165164 (std::is_same<decltype (stan::math::eval (a)),
166- const Eigen::Matrix<double , 1 , Eigen::Dynamic>&>::value));
165+ Eigen::Matrix<double , 1 , Eigen::Dynamic>&>::value));
167166 EXPECT_TRUE (
168167 (std::is_same<decltype (stan::math::eval (b)),
169168 const Eigen::Matrix<double , 1 , Eigen::Dynamic>&>::value));
@@ -173,7 +172,7 @@ TEST(MathFunctions, eval_return_type_short_circuit_matrix_xd) {
173172 Eigen::Matrix<double , Eigen::Dynamic, Eigen::Dynamic> a (5 , 4 );
174173 const Eigen::Matrix<double , Eigen::Dynamic, Eigen::Dynamic> b (5 , 4 );
175174 EXPECT_TRUE ((std::is_same<decltype (stan::math::eval (a)),
176- const Eigen::Matrix<double , Eigen::Dynamic,
175+ Eigen::Matrix<double , Eigen::Dynamic,
177176 Eigen::Dynamic>&>::value));
178177 EXPECT_TRUE ((std::is_same<decltype (stan::math::eval (b)),
179178 const Eigen::Matrix<double , Eigen::Dynamic,
@@ -201,7 +200,7 @@ TEST(MathFunctions, eval_return_type_short_circuit_static_sized_matrix) {
201200 Eigen::Matrix<double , 5 , 4 > a;
202201 const Eigen::Matrix<double , 5 , 4 > b;
203202 EXPECT_TRUE ((std::is_same<decltype (stan::math::eval (a)),
204- const Eigen::Matrix<double , 5 , 4 >&>::value));
203+ Eigen::Matrix<double , 5 , 4 >&>::value));
205204 EXPECT_TRUE ((std::is_same<decltype (stan::math::eval (b)),
206205 const Eigen::Matrix<double , 5 , 4 >&>::value));
207206}
0 commit comments