From f0394edfa7d063e37256e673cdecacd9f55f44ae Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 22 Aug 2008 17:48:36 +0000 Subject: * bugfix in SolveTriangular found by Timothy Hunter (did not compiled for very small fixed size matrices) * bugfix in Dot unroller * added special random generator for the unit tests and reduced the tolerance threshold by an order of magnitude this fixes issues with sum.cpp but other tests still failed sometimes, this have to be carefully checked... --- test/basicstuff.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'test/basicstuff.cpp') diff --git a/test/basicstuff.cpp b/test/basicstuff.cpp index b48ebbe8e..8b322deda 100644 --- a/test/basicstuff.cpp +++ b/test/basicstuff.cpp @@ -34,19 +34,18 @@ template void basicStuff(const MatrixType& m) // this test relies a lot on Random.h, and there's not much more that we can do // to test it, hence I consider that we will have tested Random.h - MatrixType m1 = MatrixType::Random(rows, cols), - m2 = MatrixType::Random(rows, cols), + 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 = Matrix - ::Random(rows, rows); - VectorType v1 = VectorType::Random(rows), - v2 = VectorType::Random(rows), + square = test_random_matrix >(rows, rows); + VectorType v1 = test_random_matrix(rows), + v2 = test_random_matrix(rows), vzero = VectorType::Zero(rows); - Scalar x = ei_random(); + Scalar x = test_random(); int r = ei_random(0, rows-1), c = ei_random(0, cols-1); -- cgit v1.2.3