diff --git a/Eigen/src/Cholesky/LDLT.h b/Eigen/src/Cholesky/LDLT.h index ceb818f19..4d3149d42 100644 --- a/Eigen/src/Cholesky/LDLT.h +++ b/Eigen/src/Cholesky/LDLT.h @@ -322,7 +322,7 @@ template inline const LDLT::PlainObject> MatrixBase::ldlt() const { - return derived(); + return LDLT(derived()); } #endif // EIGEN_LDLT_H