aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/selfadjoint.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2011-01-26 09:49:06 -0500
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2011-01-26 09:49:06 -0500
commitf88ca0ac79ad67124d1c61d258d243e9f66de22f (patch)
treea26a23ab3822174233c892a17bec884d61ef8960 /test/selfadjoint.cpp
parent9a5ded3e1d3201b2bce6da92de44e89140b58611 (diff)
fix the eigen3 part of bug #159 - build issue with selfadjointview
Diffstat (limited to 'test/selfadjoint.cpp')
-rw-r--r--test/selfadjoint.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/selfadjoint.cpp b/test/selfadjoint.cpp
index a92ad96b5..622045f20 100644
--- a/test/selfadjoint.cpp
+++ b/test/selfadjoint.cpp
@@ -52,6 +52,11 @@ template<typename MatrixType> void selfadjoint(const MatrixType& m)
VERIFY_IS_APPROX(m3, m3.adjoint());
}
+void bug_159()
+{
+ Matrix3d m = Matrix3d::Random().selfadjointView<Lower>();
+}
+
void test_selfadjoint()
{
for(int i = 0; i < g_repeat ; i++)
@@ -64,4 +69,6 @@ void test_selfadjoint()
CALL_SUBTEST_4( selfadjoint(MatrixXcd(s,s)) );
CALL_SUBTEST_5( selfadjoint(Matrix<float,Dynamic,Dynamic,RowMajor>(s, s)) );
}
+
+ CALL_SUBTEST_1( bug_159() );
}