aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/eigen2/eigen2_lu.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2011-01-25 09:02:59 -0500
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2011-01-25 09:02:59 -0500
commit3e2469f9519fdc4f185e42dda3aeb4fda0a5547b (patch)
tree8a9be121124e51f5f805babc8e3eea559e71ff33 /test/eigen2/eigen2_lu.cpp
parentb04591fbb487d56f190a33ad96e7633b50da0c05 (diff)
eigen2: split tests
Diffstat (limited to 'test/eigen2/eigen2_lu.cpp')
-rw-r--r--test/eigen2/eigen2_lu.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/test/eigen2/eigen2_lu.cpp b/test/eigen2/eigen2_lu.cpp
index 5c608209c..c6c8d577d 100644
--- a/test/eigen2/eigen2_lu.cpp
+++ b/test/eigen2/eigen2_lu.cpp
@@ -123,19 +123,21 @@ template<typename MatrixType> void lu_invertible()
void test_eigen2_lu()
{
for(int i = 0; i < g_repeat; i++) {
- CALL_SUBTEST( lu_non_invertible<MatrixXf>() );
- CALL_SUBTEST( lu_non_invertible<MatrixXd>() );
- CALL_SUBTEST( lu_non_invertible<MatrixXcf>() );
- CALL_SUBTEST( lu_non_invertible<MatrixXcd>() );
- CALL_SUBTEST( lu_invertible<MatrixXf>() );
- CALL_SUBTEST( lu_invertible<MatrixXd>() );
- CALL_SUBTEST( lu_invertible<MatrixXcf>() );
- CALL_SUBTEST( lu_invertible<MatrixXcd>() );
+ CALL_SUBTEST_1( lu_non_invertible<MatrixXf>() );
+ CALL_SUBTEST_2( lu_non_invertible<MatrixXd>() );
+ CALL_SUBTEST_3( lu_non_invertible<MatrixXcf>() );
+ CALL_SUBTEST_4( lu_non_invertible<MatrixXcd>() );
+ CALL_SUBTEST_1( lu_invertible<MatrixXf>() );
+ CALL_SUBTEST_2( lu_invertible<MatrixXd>() );
+ CALL_SUBTEST_3( lu_invertible<MatrixXcf>() );
+ CALL_SUBTEST_4( lu_invertible<MatrixXcd>() );
}
+#ifdef EIGEN_TEST_PART_1
MatrixXf m = MatrixXf::Zero(10,10);
VectorXf b = VectorXf::Zero(10);
VectorXf x = VectorXf::Random(10);
VERIFY(m.lu().solve(b,&x));
VERIFY(x.isZero());
+#endif
}