aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/determinant.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2011-07-12 14:41:00 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2011-07-12 14:41:00 +0200
commita8f66fec6591e11a20a9861bda244e15f969fda2 (patch)
tree79d30afad3cf953afe35e852e61b6a8729ddf832 /test/determinant.cpp
parentbdb545ce3b294e28cd264c627ceaae42d26ea5f4 (diff)
add the possibility to configure the maximal matrix size in the unit tests
Diffstat (limited to 'test/determinant.cpp')
-rw-r--r--test/determinant.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/determinant.cpp b/test/determinant.cpp
index dcf64387d..eadc8c6b4 100644
--- a/test/determinant.cpp
+++ b/test/determinant.cpp
@@ -68,13 +68,14 @@ template<typename MatrixType> void determinant(const MatrixType& m)
void test_determinant()
{
+ int s;
for(int i = 0; i < g_repeat; i++) {
CALL_SUBTEST_1( determinant(Matrix<float, 1, 1>()) );
CALL_SUBTEST_2( determinant(Matrix<double, 2, 2>()) );
CALL_SUBTEST_3( determinant(Matrix<double, 3, 3>()) );
CALL_SUBTEST_4( determinant(Matrix<double, 4, 4>()) );
CALL_SUBTEST_5( determinant(Matrix<std::complex<double>, 10, 10>()) );
- CALL_SUBTEST_6( determinant(MatrixXd(20, 20)) );
+ s = internal::random<int>(1,EIGEN_TEST_MAX_SIZE/4);
+ CALL_SUBTEST_6( determinant(MatrixXd(s, s)) );
}
- CALL_SUBTEST_6( determinant(MatrixXd(200, 200)) );
}