We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c476f6 commit ed6b54fCopy full SHA for ed6b54f
1 file changed
test/unit/math/prim/fun/to_ref_test.cpp
@@ -25,8 +25,7 @@ TEST(MathMatrix, to_ref_matrix_exprs_tuple) {
25
TEST(MathMatrix, to_ref_matrix_views_tuple) {
26
Eigen::MatrixXd a = Eigen::MatrixXd::Random(3, 3);
27
auto x = std::make_tuple(a.block(0, 0, 1, 1),
28
- a(Eigen::all, std::vector{2, 1, 1}),
29
- a.array());
+ a(Eigen::all, std::vector{2, 1, 1}), a.array());
30
auto x_ref = stan::math::to_ref(x);
31
using x_ref_t = decltype(x_ref);
32
using stan::test::is_same_tuple_element_v;
@@ -46,8 +45,7 @@ TEST(MathMatrix, to_ref_matrix_views_exprs_tuple) {
46
45
47
auto x = std::make_tuple(
48
a.block(0, 0, 1, 1),
49
- std::make_tuple(a.block(0, 0, 1, 1),
50
+ std::make_tuple(a.block(0, 0, 1, 1), a(Eigen::all, std::vector{2, 1, 1}),
51
a.array()),
52
std::make_tuple(a * a, a, a.array() * 3),
53
a(Eigen::all, std::vector{2, 1, 1}), a.array() * a.array());
0 commit comments