mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Reverse::coeff*(int) functions are for vector only
This commit is contained in:
@@ -185,4 +185,9 @@ void test_reverse()
|
||||
CALL_SUBTEST( reverse(Matrix<float, 100, 100>()) );
|
||||
CALL_SUBTEST( reverse(Matrix<long double,Dynamic,Dynamic>(10,10)) );
|
||||
}
|
||||
Vector4f x; x << 1, 2, 3, 4;
|
||||
Vector4f y; y << 4, 3, 2, 1;
|
||||
VERIFY(x.reverse()[1] == 3);
|
||||
VERIFY(x.reverse() == y);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user