compilation fix in ldlt() for non matrix types

(transplanted from 608959aa6fce375abb92872350267074a1d90283
)
This commit is contained in:
Gael Guennebaud 2010-02-21 10:29:19 +01:00
parent e1f61b40c8
commit 1f4b8e6a36

View File

@ -192,7 +192,7 @@ template<typename Derived>
inline const LDLT<typename MatrixBase<Derived>::PlainMatrixType>
MatrixBase<Derived>::ldlt() const
{
return derived();
return LDLT<PlainObject>(derived());
}
#endif // EIGEN_LDLT_H