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_trmm.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'test/product_trmm.cpp') diff --git a/test/product_trmm.cpp b/test/product_trmm.cpp index 4220fff44..dab05d8b0 100644 --- a/test/product_trmm.cpp +++ b/test/product_trmm.cpp @@ -25,7 +25,9 @@ #include "main.h" template -void trmm(int rows=internal::random(1,320), int cols=internal::random(1,320), int otherCols = OtherCols==Dynamic?internal::random(1,320):OtherCols) +void trmm(int rows=internal::random(1,EIGEN_TEST_MAX_SIZE), + int cols=internal::random(1,EIGEN_TEST_MAX_SIZE), + int otherCols = OtherCols==Dynamic?internal::random(1,EIGEN_TEST_MAX_SIZE):OtherCols) { typedef typename NumTraits::Real RealScalar; @@ -75,13 +77,13 @@ void trmm(int rows=internal::random(1,320), int cols=internal::random( } template -void trmv(int rows=internal::random(1,320), int cols=internal::random(1,320)) +void trmv(int rows=internal::random(1,EIGEN_TEST_MAX_SIZE), int cols=internal::random(1,EIGEN_TEST_MAX_SIZE)) { trmm(rows,cols,1); } template -void trmm(int rows=internal::random(1,320), int cols=internal::random(1,320), int otherCols = internal::random(1,320)) +void trmm(int rows=internal::random(1,EIGEN_TEST_MAX_SIZE), int cols=internal::random(1,EIGEN_TEST_MAX_SIZE), int otherCols = internal::random(1,EIGEN_TEST_MAX_SIZE)) { trmm(rows,cols,otherCols); } @@ -96,7 +98,7 @@ void trmm(int rows=internal::random(1,320), int cols=internal::random( EIGEN_CAT(CALL_SUBTEST_,NB)((trmm())); \ EIGEN_CAT(CALL_SUBTEST_,NB)((trmm())); \ \ - EIGEN_CAT(CALL_SUBTEST_1,NB)((trmv())); \ + EIGEN_CAT(CALL_SUBTEST_1,NB)((trmv())); \ EIGEN_CAT(CALL_SUBTEST_1,NB)((trmv())); -- cgit v1.2.3