compilation fix in ldlt() for non matrix types

This commit is contained in:
Gael Guennebaud 2010-02-21 10:29:19 +01:00
parent 71fecd2371
commit 608959aa6f

View File

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