makes sure to test small sizes

This commit is contained in:
Gael Guennebaud 2010-06-24 23:06:21 +02:00
parent 99e4afd43e
commit 88e7a572fd
2 changed files with 9 additions and 9 deletions

View File

@ -114,12 +114,12 @@ void test_product_symm()
{ {
for(int i = 0; i < g_repeat ; i++) for(int i = 0; i < g_repeat ; i++)
{ {
CALL_SUBTEST_1(( symm<float,Dynamic,Dynamic>(ei_random<int>(10,320),ei_random<int>(10,320)) )); CALL_SUBTEST_1(( symm<float,Dynamic,Dynamic>(ei_random<int>(1,320),ei_random<int>(1,320)) ));
CALL_SUBTEST_2(( symm<double,Dynamic,Dynamic>(ei_random<int>(10,320),ei_random<int>(10,320)) )); CALL_SUBTEST_2(( symm<double,Dynamic,Dynamic>(ei_random<int>(1,320),ei_random<int>(1,320)) ));
CALL_SUBTEST_3(( symm<std::complex<double>,Dynamic,Dynamic>(ei_random<int>(10,320),ei_random<int>(10,320)) )); CALL_SUBTEST_3(( symm<std::complex<double>,Dynamic,Dynamic>(ei_random<int>(1,320),ei_random<int>(1,320)) ));
CALL_SUBTEST_4(( symm<float,Dynamic,1>(ei_random<int>(10,320)) )); CALL_SUBTEST_4(( symm<float,Dynamic,1>(ei_random<int>(1,320)) ));
CALL_SUBTEST_5(( symm<double,Dynamic,1>(ei_random<int>(10,320)) )); CALL_SUBTEST_5(( symm<double,Dynamic,1>(ei_random<int>(1,320)) ));
CALL_SUBTEST_6(( symm<std::complex<double>,Dynamic,1>(ei_random<int>(10,320)) )); CALL_SUBTEST_6(( symm<std::complex<double>,Dynamic,1>(ei_random<int>(1,320)) ));
} }
} }

View File

@ -75,11 +75,11 @@ void test_product_syrk()
for(int i = 0; i < g_repeat ; i++) for(int i = 0; i < g_repeat ; i++)
{ {
int s; int s;
s = ei_random<int>(10,320); s = ei_random<int>(1,320);
CALL_SUBTEST_1( syrk(MatrixXf(s, s)) ); CALL_SUBTEST_1( syrk(MatrixXf(s, s)) );
s = ei_random<int>(10,320); s = ei_random<int>(1,320);
CALL_SUBTEST_2( syrk(MatrixXd(s, s)) ); CALL_SUBTEST_2( syrk(MatrixXd(s, s)) );
s = ei_random<int>(10,320); s = ei_random<int>(1,320);
CALL_SUBTEST_3( syrk(MatrixXcd(s, s)) ); CALL_SUBTEST_3( syrk(MatrixXcd(s, s)) );
} }
} }