diff options
author | Gael Guennebaud <g.gael@free.fr> | 2011-07-12 14:41:00 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2011-07-12 14:41:00 +0200 |
commit | a8f66fec6591e11a20a9861bda244e15f969fda2 (patch) | |
tree | 79d30afad3cf953afe35e852e61b6a8729ddf832 /test/jacobi.cpp | |
parent | bdb545ce3b294e28cd264c627ceaae42d26ea5f4 (diff) |
add the possibility to configure the maximal matrix size in the unit tests
Diffstat (limited to 'test/jacobi.cpp')
-rw-r--r-- | test/jacobi.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/jacobi.cpp b/test/jacobi.cpp index 6464c63c5..4d462226c 100644 --- a/test/jacobi.cpp +++ b/test/jacobi.cpp @@ -82,8 +82,8 @@ void test_jacobi() CALL_SUBTEST_3(( jacobi<Matrix4cf, float>() )); CALL_SUBTEST_3(( jacobi<Matrix4cf, std::complex<float> >() )); - int r = internal::random<int>(2, 20), - c = internal::random<int>(2, 20); + int r = internal::random<int>(2, internal::random<int>(1,EIGEN_TEST_MAX_SIZE)/2), + c = internal::random<int>(2, internal::random<int>(1,EIGEN_TEST_MAX_SIZE)/2); CALL_SUBTEST_4(( jacobi<MatrixXf, float>(MatrixXf(r,c)) )); CALL_SUBTEST_5(( jacobi<MatrixXcd, double>(MatrixXcd(r,c)) )); CALL_SUBTEST_5(( jacobi<MatrixXcd, std::complex<double> >(MatrixXcd(r,c)) )); |