From a8f66fec6591e11a20a9861bda244e15f969fda2 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 12 Jul 2011 14:41:00 +0200 Subject: add the possibility to configure the maximal matrix size in the unit tests --- test/product_large.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/product_large.cpp') diff --git a/test/product_large.cpp b/test/product_large.cpp index 8ed937068..6f7a91b84 100644 --- a/test/product_large.cpp +++ b/test/product_large.cpp @@ -27,11 +27,11 @@ void test_product_large() { for(int i = 0; i < g_repeat; i++) { - CALL_SUBTEST_1( product(MatrixXf(internal::random(1,320), internal::random(1,320))) ); - CALL_SUBTEST_2( product(MatrixXd(internal::random(1,320), internal::random(1,320))) ); - CALL_SUBTEST_3( product(MatrixXi(internal::random(1,320), internal::random(1,320))) ); - CALL_SUBTEST_4( product(MatrixXcf(internal::random(1,150), internal::random(1,150))) ); - CALL_SUBTEST_5( product(Matrix(internal::random(1,320), internal::random(1,320))) ); + CALL_SUBTEST_1( product(MatrixXf(internal::random(1,EIGEN_TEST_MAX_SIZE), internal::random(1,EIGEN_TEST_MAX_SIZE))) ); + CALL_SUBTEST_2( product(MatrixXd(internal::random(1,EIGEN_TEST_MAX_SIZE), internal::random(1,EIGEN_TEST_MAX_SIZE))) ); + CALL_SUBTEST_3( product(MatrixXi(internal::random(1,EIGEN_TEST_MAX_SIZE), internal::random(1,EIGEN_TEST_MAX_SIZE))) ); + CALL_SUBTEST_4( product(MatrixXcf(internal::random(1,EIGEN_TEST_MAX_SIZE/2), internal::random(1,EIGEN_TEST_MAX_SIZE/2))) ); + CALL_SUBTEST_5( product(Matrix(internal::random(1,EIGEN_TEST_MAX_SIZE), internal::random(1,EIGEN_TEST_MAX_SIZE))) ); } #if defined EIGEN_TEST_PART_6 -- cgit v1.2.3