From a187ffea28f04238e1a0b05ae76e9cc9d19d5f6c Mon Sep 17 00:00:00 2001 From: Christopher Moore Date: Wed, 13 May 2020 19:24:42 +0000 Subject: Resolve "IndexedView of a vector should allow linear access" --- test/indexed_view.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/indexed_view.cpp') diff --git a/test/indexed_view.cpp b/test/indexed_view.cpp index 272b6087b..1dff972d2 100644 --- a/test/indexed_view.cpp +++ b/test/indexed_view.cpp @@ -429,6 +429,16 @@ void check_indexed_view() A(all, eii).col(0) = A.col(eii(0)); } + // bug 1815: IndexedView should allow linear access + { + VERIFY( MATCH( b(eii)(0), "3" ) ); + VERIFY( MATCH( a(eii)(0), "3" ) ); + VERIFY( MATCH( A(1,eii)(0), "103")); + VERIFY( MATCH( A(eii,1)(0), "301")); + VERIFY( MATCH( A(1,all)(1), "101")); + VERIFY( MATCH( A(all,1)(1), "101")); + } + } EIGEN_DECLARE_TEST(indexed_view) -- cgit v1.2.3