aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/product_selfadjoint.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-07-23 10:05:38 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-07-23 10:05:38 +0200
commitddb3ac98a20d5f56146a53d485b1899a46b9f912 (patch)
tree1c8740971ca97cd752b24d9f60cbf5d810e1d160 /test/product_selfadjoint.cpp
parentf696efc00ed3a74334a263d81b60c662a7e3ab63 (diff)
addd matrix * self adjoint high level API
Diffstat (limited to 'test/product_selfadjoint.cpp')
-rw-r--r--test/product_selfadjoint.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/product_selfadjoint.cpp b/test/product_selfadjoint.cpp
index 814d542e4..44bafad93 100644
--- a/test/product_selfadjoint.cpp
+++ b/test/product_selfadjoint.cpp
@@ -138,6 +138,13 @@ template<typename MatrixType> void symm(const MatrixType& m)
m2 = m1.template triangularView<UpperTriangular>();
VERIFY_IS_APPROX(rhs32 = (s1*m2.adjoint()).template selfadjointView<LowerTriangular>() * (s2*rhs3).conjugate(),
rhs33 = (s1*m1.adjoint()) * (s2*rhs3).conjugate());
+
+ // test matrix * selfadjoint
+ m2 = m1.template triangularView<LowerTriangular>();
+ VERIFY_IS_APPROX(rhs22 = (rhs2) * (m2).template selfadjointView<LowerTriangular>(),
+ rhs23 = (rhs2) * (m1));
+ VERIFY_IS_APPROX(rhs22 = (s2*rhs2) * (s1*m2).template selfadjointView<LowerTriangular>(),
+ rhs23 = (s2*rhs2) * (s1*m1));
}
void test_product_selfadjoint()
{