diff --git a/Eigen/src/QR/QR.h b/Eigen/src/QR/QR.h index 88914af3a..7712bfbf2 100644 --- a/Eigen/src/QR/QR.h +++ b/Eigen/src/QR/QR.h @@ -57,7 +57,7 @@ template class QR } /** \returns whether or not the matrix is of full rank */ - bool isFullRank() const { return ei_isMuchSmallerThan(m_hCoeffs.cwise().abs().minCoeff(), Scalar(1)); } + bool isFullRank() const { return !ei_isMuchSmallerThan(m_qr.diagonal().cwise().abs().minCoeff(), Scalar(1)); } /** \returns a read-only expression of the matrix R of the actual the QR decomposition */ const Part, UpperTriangular>