fix compilation of transform * scaling

This commit is contained in:
Gael Guennebaud
2010-11-19 14:45:45 +01:00
parent 3e99356b59
commit 3f24dbf6f5
2 changed files with 7 additions and 4 deletions

View File

@@ -46,6 +46,7 @@ class DiagonalBase : public EigenBase<Derived>
};
typedef Matrix<Scalar, RowsAtCompileTime, ColsAtCompileTime, 0, MaxRowsAtCompileTime, MaxColsAtCompileTime> DenseMatrixType;
typedef DiagonalMatrix<Scalar,DiagonalVectorType::SizeAtCompileTime,DiagonalVectorType::MaxSizeAtCompileTime> PlainObject;
inline const Derived& derived() const { return *static_cast<const Derived*>(this); }
inline Derived& derived() { return *static_cast<Derived*>(this); }