aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/DiagonalMatrix.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2008-05-01 18:58:30 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2008-05-01 18:58:30 +0000
commitef5b20bc50fb0a44ca48e6167d98437f4f2ee75e (patch)
treec9bec2736df55f9cb4027fc62ac48982146dba8a /Eigen/src/Core/DiagonalMatrix.h
parent5588def0cf53e0b65740bf51658123a3c6401287 (diff)
fix flag and cost computations for nested expressions
Diffstat (limited to 'Eigen/src/Core/DiagonalMatrix.h')
-rw-r--r--Eigen/src/Core/DiagonalMatrix.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Eigen/src/Core/DiagonalMatrix.h b/Eigen/src/Core/DiagonalMatrix.h
index 94c7d2b88..972ef464e 100644
--- a/Eigen/src/Core/DiagonalMatrix.h
+++ b/Eigen/src/Core/DiagonalMatrix.h
@@ -42,13 +42,15 @@ template<typename CoeffsVectorType>
struct ei_traits<DiagonalMatrix<CoeffsVectorType> >
{
typedef typename CoeffsVectorType::Scalar Scalar;
+ typedef typename ei_nested<CoeffsVectorType>::type CoeffsVectorTypeTypeNested;
+ typedef typename ei_unref<CoeffsVectorTypeTypeNested>::type _CoeffsVectorTypeTypeNested;
enum {
RowsAtCompileTime = CoeffsVectorType::SizeAtCompileTime,
ColsAtCompileTime = CoeffsVectorType::SizeAtCompileTime,
MaxRowsAtCompileTime = CoeffsVectorType::MaxSizeAtCompileTime,
MaxColsAtCompileTime = CoeffsVectorType::MaxSizeAtCompileTime,
- Flags = CoeffsVectorType::Flags & DefaultLostFlagMask,
- CoeffReadCost = CoeffsVectorType::CoeffReadCost
+ Flags = _CoeffsVectorTypeTypeNested::Flags & DefaultLostFlagMask,
+ CoeffReadCost = _CoeffsVectorTypeTypeNested::CoeffReadCost
};
};