diff options
author | Gael Guennebaud <g.gael@free.fr> | 2010-07-07 10:50:40 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2010-07-07 10:50:40 +0200 |
commit | 55495dcbaefbd25d8d97a260ca2de921357a137c (patch) | |
tree | 473b876abd4fbaab202cfec686a8d5cdc945d467 /test/product_trmv.cpp | |
parent | e38fc9692dfac3596331c6f7b9e50a0fb7dbcfe9 (diff) |
extend product unit tests
Diffstat (limited to 'test/product_trmv.cpp')
-rw-r--r-- | test/product_trmv.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/product_trmv.cpp b/test/product_trmv.cpp index 33a4068cb..9ce09e429 100644 --- a/test/product_trmv.cpp +++ b/test/product_trmv.cpp @@ -88,12 +88,16 @@ template<typename MatrixType> void trmv(const MatrixType& m) void test_product_trmv() { + int s; for(int i = 0; i < g_repeat ; i++) { CALL_SUBTEST_1( trmv(Matrix<float, 1, 1>()) ); CALL_SUBTEST_2( trmv(Matrix<float, 2, 2>()) ); CALL_SUBTEST_3( trmv(Matrix3d()) ); - CALL_SUBTEST_4( trmv(Matrix<std::complex<float>,23, 23>()) ); - CALL_SUBTEST_5( trmv(MatrixXcd(17,17)) ); - CALL_SUBTEST_6( trmv(Matrix<float,Dynamic,Dynamic,RowMajor>(19, 19)) ); + s = ei_random<int>(1,200); + CALL_SUBTEST_4( trmv(MatrixXcf(s)) ); + s = ei_random<int>(1,200); + CALL_SUBTEST_5( trmv(MatrixXcd(s,s)) ); + s = ei_random<int>(1,320); + CALL_SUBTEST_6( trmv(Matrix<float,Dynamic,Dynamic,RowMajor>(s, s)) ); } } |