Fixes the problem, described here:

http://listengine.tuxfamily.org/lists.tuxfamily.org/eigen/2010/05/msg00154.html
This commit is contained in:
Anton Gladky
2010-05-28 10:18:37 +02:00
parent 39c568445c
commit 09a1b7f7e1

View File

@@ -286,6 +286,7 @@ template<typename _MatrixType> class ColPivHouseholderQR
{ {
m_usePrescribedThreshold = true; m_usePrescribedThreshold = true;
m_prescribedThreshold = threshold; m_prescribedThreshold = threshold;
return *this;
} }
/** Allows to come back to the default behavior, letting Eigen use its default formula for /** Allows to come back to the default behavior, letting Eigen use its default formula for
@@ -299,6 +300,7 @@ template<typename _MatrixType> class ColPivHouseholderQR
ColPivHouseholderQR& setThreshold(Default_t) ColPivHouseholderQR& setThreshold(Default_t)
{ {
m_usePrescribedThreshold = false; m_usePrescribedThreshold = false;
return *this;
} }
/** Returns the threshold that will be used by certain methods such as rank(). /** Returns the threshold that will be used by certain methods such as rank().