* FullPivLU: replace "remaining==0" termination condition (from Golub) by a fuzzy compare

(fixes lu test failures when testing solve())
* LU test: set appropriate threshold and limit the number of times that a specially tricky test
  is run. (fixes lu test failures when testing rank()).
* Tests: rename createRandomMatrixOfRank to createRandomProjectionOfRank
This commit is contained in:
Benoit Jacob
2010-02-23 09:04:59 -05:00
parent 4a0d41c5fb
commit 7dc75380c1
6 changed files with 37 additions and 12 deletions

View File

@@ -148,7 +148,7 @@ namespace Eigen
#define EIGEN_INTERNAL_DEBUGGING
#define EIGEN_NICE_RANDOM
#include <Eigen/QR> // required for createRandomMatrixOfRank
#include <Eigen/QR> // required for createRandomProjectionOfRank
#define VERIFY(a) do { if (!(a)) { \
@@ -343,7 +343,7 @@ inline bool test_isUnitary(const MatrixBase<Derived>& m)
}
template<typename MatrixType>
void createRandomMatrixOfRank(int desired_rank, int rows, int cols, MatrixType& m)
void createRandomProjectionOfRank(int desired_rank, int rows, int cols, MatrixType& m)
{
typedef typename ei_traits<MatrixType>::Scalar Scalar;
enum { Rows = MatrixType::RowsAtCompileTime, Cols = MatrixType::ColsAtCompileTime };