aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/main.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2010-02-23 09:04:59 -0500
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2010-02-23 09:04:59 -0500
commit7dc75380c101b9b4f3882f78fe6a5e9ae8963cac (patch)
treeee0856550592df2b74bd2d4f912780e2fdbb3cc4 /test/main.h
parent4a0d41c5fb9dde0a0a15051ca04b228cea8a16ea (diff)
* 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
Diffstat (limited to 'test/main.h')
-rw-r--r--test/main.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/main.h b/test/main.h
index 64f70b394..6d296b2e3 100644
--- a/test/main.h
+++ b/test/main.h
@@ -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 };