From f88ca0ac79ad67124d1c61d258d243e9f66de22f Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Wed, 26 Jan 2011 09:49:06 -0500 Subject: fix the eigen3 part of bug #159 - build issue with selfadjointview --- test/selfadjoint.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/selfadjoint.cpp') 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 void selfadjoint(const MatrixType& m) VERIFY_IS_APPROX(m3, m3.adjoint()); } +void bug_159() +{ + Matrix3d m = Matrix3d::Random().selfadjointView(); +} + 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(s, s)) ); } + + CALL_SUBTEST_1( bug_159() ); } -- cgit v1.2.3