From 2120fed849e1d00724694a2c8a041ec5561c750b Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Sat, 23 Aug 2008 15:14:20 +0000 Subject: * bug fixes in: Dot, generalized eigen problem, singular matrix detetection in Cholesky * fix all numerical instabilies in the unit tests, now all tests can be run 2000 times with almost zero failures. --- test/linearstructure.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'test/linearstructure.cpp') diff --git a/test/linearstructure.cpp b/test/linearstructure.cpp index 47f1cbed7..5178839c9 100644 --- a/test/linearstructure.cpp +++ b/test/linearstructure.cpp @@ -41,15 +41,10 @@ template void linearStructure(const MatrixType& m) MatrixType m1 = test_random_matrix(rows, cols), m2 = test_random_matrix(rows, cols), m3(rows, cols), - mzero = MatrixType::Zero(rows, cols), - identity = Matrix - ::Identity(rows, rows), - square = test_random_matrix >(rows, rows); - VectorType v1 = test_random_matrix(rows), - v2 = test_random_matrix(rows), - vzero = VectorType::Zero(rows); + mzero = MatrixType::Zero(rows, cols); Scalar s1 = test_random(); + while (ei_abs(s1)<1e-3) s1 = test_random(); int r = ei_random(0, rows-1), c = ei_random(0, cols-1); @@ -94,6 +89,7 @@ void test_linearstructure() for(int i = 0; i < g_repeat; i++) { CALL_SUBTEST( linearStructure(Matrix()) ); CALL_SUBTEST( linearStructure(Matrix2f()) ); + CALL_SUBTEST( linearStructure(Vector3d()) ); CALL_SUBTEST( linearStructure(Matrix4d()) ); CALL_SUBTEST( linearStructure(MatrixXcf(3, 3)) ); CALL_SUBTEST( linearStructure(MatrixXf(8, 12)) ); -- cgit v1.2.3