From 547269da3560518807efe902bce07d22db03e039 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Fri, 19 Mar 2010 02:12:23 -0400 Subject: fix the flags and matrix options, to always have the right RowMajor bit in the vector case --- Eigen/src/Core/ProductBase.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Eigen/src/Core/ProductBase.h') diff --git a/Eigen/src/Core/ProductBase.h b/Eigen/src/Core/ProductBase.h index 789aecfb6..be32189e1 100644 --- a/Eigen/src/Core/ProductBase.h +++ b/Eigen/src/Core/ProductBase.h @@ -42,8 +42,10 @@ struct ei_traits > //: ei_traits::ColsAtCompileTime, MaxRowsAtCompileTime = ei_traits::MaxRowsAtCompileTime, MaxColsAtCompileTime = ei_traits::MaxColsAtCompileTime, - Flags = EvalBeforeNestingBit | EvalBeforeAssigningBit | NestByRefBit, // Note that EvalBeforeNestingBit and NestByRefBit - // are not used in practice because ei_nested is overloaded for products + Flags = (RowsAtCompileTime==1 ? RowMajorBit : 0) + | EvalBeforeNestingBit | EvalBeforeAssigningBit | NestByRefBit, + // Note that EvalBeforeNestingBit and NestByRefBit + // are not used in practice because ei_nested is overloaded for products CoeffReadCost = 0 // FIXME why is it needed ? }; }; -- cgit v1.2.3