diff options
author | Christopher Moore <crmoore@gmail.com> | 2020-05-14 22:11:19 +0000 |
---|---|---|
committer | Rasmus Munk Larsen <rmlarsen@google.com> | 2020-05-14 22:11:19 +0000 |
commit | fa8fd4b4d57323384644394c651ca106d299695f (patch) | |
tree | 5868bb2b480e51d504493a819725769c07b797be /test/indexed_view.cpp | |
parent | a187ffea28f04238e1a0b05ae76e9cc9d19d5f6c (diff) |
Indexed view should have RowMajorBit when there is staticly a single row
Diffstat (limited to 'test/indexed_view.cpp')
-rw-r--r-- | test/indexed_view.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/indexed_view.cpp b/test/indexed_view.cpp index 1dff972d2..3ac6706ef 100644 --- a/test/indexed_view.cpp +++ b/test/indexed_view.cpp @@ -439,6 +439,12 @@ void check_indexed_view() VERIFY( MATCH( A(all,1)(1), "101")); } + //Bug IndexView with a single static row should be RowMajor: + { + // A(1, seq(0,2,1)).cwiseAbs().colwise().replicate(2).eval(); + STATIC_CHECK(( (internal::evaluator<decltype( A(1,seq(0,2,1)) )>::Flags & RowMajorBit) == RowMajorBit )); + } + } EIGEN_DECLARE_TEST(indexed_view) |