From 09a1b7f7e1ec09f96dd0f58bb6bc22881e0c76b6 Mon Sep 17 00:00:00 2001 From: Anton Gladky Date: Fri, 28 May 2010 10:18:37 +0200 Subject: [PATCH] Fixes the problem, described here: http://listengine.tuxfamily.org/lists.tuxfamily.org/eigen/2010/05/msg00154.html --- Eigen/src/QR/ColPivHouseholderQR.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Eigen/src/QR/ColPivHouseholderQR.h b/Eigen/src/QR/ColPivHouseholderQR.h index b4bcfd529..e0eaf32a9 100644 --- a/Eigen/src/QR/ColPivHouseholderQR.h +++ b/Eigen/src/QR/ColPivHouseholderQR.h @@ -286,6 +286,7 @@ template class ColPivHouseholderQR { m_usePrescribedThreshold = true; m_prescribedThreshold = threshold; + return *this; } /** Allows to come back to the default behavior, letting Eigen use its default formula for @@ -299,6 +300,7 @@ template class ColPivHouseholderQR ColPivHouseholderQR& setThreshold(Default_t) { m_usePrescribedThreshold = false; + return *this; } /** Returns the threshold that will be used by certain methods such as rank().