From 0bfb78c8240525a8065e008efad08498d572ef81 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 27 Jan 2011 09:59:19 +0100 Subject: allow mixed complex-real and real-complex dot products --- test/adjoint.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/adjoint.cpp') diff --git a/test/adjoint.cpp b/test/adjoint.cpp index 72cbf3406..47889591f 100644 --- a/test/adjoint.cpp +++ b/test/adjoint.cpp @@ -106,6 +106,11 @@ template void adjoint(const MatrixType& m) m3.transposeInPlace(); VERIFY_IS_APPROX(m3,m1.conjugate()); + // check mixed dot product + typedef Matrix RealVectorType; + RealVectorType rv1 = RealVectorType::Random(rows); + VERIFY_IS_APPROX(v1.dot(rv1.template cast()), v1.dot(rv1)); + VERIFY_IS_APPROX(rv1.template cast().dot(v1), rv1.dot(v1)); } void test_adjoint() -- cgit v1.2.3