diff --git a/Eigen/src/Cholesky/LDLT.h b/Eigen/src/Cholesky/LDLT.h index 205b78a6d..a511a7dc4 100644 --- a/Eigen/src/Cholesky/LDLT.h +++ b/Eigen/src/Cholesky/LDLT.h @@ -192,7 +192,7 @@ template inline const LDLT::PlainMatrixType> MatrixBase::ldlt() const { - return derived(); + return LDLT(derived()); } #endif // EIGEN_LDLT_H