From fa8fd4b4d57323384644394c651ca106d299695f Mon Sep 17 00:00:00 2001 From: Christopher Moore Date: Thu, 14 May 2020 22:11:19 +0000 Subject: Indexed view should have RowMajorBit when there is staticly a single row --- Eigen/src/Core/IndexedView.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Eigen/src/Core/IndexedView.h') diff --git a/Eigen/src/Core/IndexedView.h b/Eigen/src/Core/IndexedView.h index 5c2c72496..08476251d 100644 --- a/Eigen/src/Core/IndexedView.h +++ b/Eigen/src/Core/IndexedView.h @@ -171,7 +171,9 @@ struct unary_evaluator, IndexBased> FlagsLinearAccessBit = (traits::RowsAtCompileTime == 1 || traits::ColsAtCompileTime == 1) ? LinearAccessBit : 0, - Flags = (evaluator::Flags & (HereditaryBits /*| LinearAccessBit | DirectAccessBit*/)) | FlagsLinearAccessBit, + FlagsRowMajorBit = traits::FlagsRowMajorBit, + + Flags = (evaluator::Flags & (HereditaryBits & ~RowMajorBit /*| LinearAccessBit | DirectAccessBit*/)) | FlagsLinearAccessBit | FlagsRowMajorBit, Alignment = 0 }; -- cgit v1.2.3