aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/product_selfadjoint.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2010-07-07 10:50:40 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2010-07-07 10:50:40 +0200
commit55495dcbaefbd25d8d97a260ca2de921357a137c (patch)
tree473b876abd4fbaab202cfec686a8d5cdc945d467 /test/product_selfadjoint.cpp
parente38fc9692dfac3596331c6f7b9e50a0fb7dbcfe9 (diff)
extend product unit tests
Diffstat (limited to 'test/product_selfadjoint.cpp')
-rw-r--r--test/product_selfadjoint.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/test/product_selfadjoint.cpp b/test/product_selfadjoint.cpp
index d77cab37b..c84582484 100644
--- a/test/product_selfadjoint.cpp
+++ b/test/product_selfadjoint.cpp
@@ -78,14 +78,18 @@ template<typename MatrixType> void product_selfadjoint(const MatrixType& m)
void test_product_selfadjoint()
{
+ int s;
for(int i = 0; i < g_repeat ; i++) {
CALL_SUBTEST_1( product_selfadjoint(Matrix<float, 1, 1>()) );
CALL_SUBTEST_2( product_selfadjoint(Matrix<float, 2, 2>()) );
CALL_SUBTEST_3( product_selfadjoint(Matrix3d()) );
- CALL_SUBTEST_4( product_selfadjoint(MatrixXcf(4, 4)) );
- CALL_SUBTEST_5( product_selfadjoint(MatrixXcd(21,21)) );
- CALL_SUBTEST_6( product_selfadjoint(MatrixXd(14,14)) );
- CALL_SUBTEST_7( product_selfadjoint(Matrix<float,Dynamic,Dynamic,RowMajor>(17,17)) );
- CALL_SUBTEST_8( product_selfadjoint(Matrix<std::complex<double>,Dynamic,Dynamic,RowMajor>(19, 19)) );
+ s = ei_random<int>(1,150);
+ CALL_SUBTEST_4( product_selfadjoint(MatrixXcf(s, s)) );
+ s = ei_random<int>(1,150);
+ CALL_SUBTEST_5( product_selfadjoint(MatrixXcd(s,s)) );
+ s = ei_random<int>(1,320);
+ CALL_SUBTEST_6( product_selfadjoint(MatrixXd(s,s)) );
+ s = ei_random<int>(1,320);
+ CALL_SUBTEST_7( product_selfadjoint(Matrix<float,Dynamic,Dynamic,RowMajor>(s,s)) );
}
}