From 98ff17eb9e70ad62a2dad2eaee2900eb2f110720 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 26 Jun 2015 16:08:15 +0200 Subject: Add special path for matrix/real. This also fixes underflow issues when scaling complex matrices through complex/complex operator. --- test/linearstructure.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/linearstructure.cpp') diff --git a/test/linearstructure.cpp b/test/linearstructure.cpp index 8e3cc9a86..3c7cdbe41 100644 --- a/test/linearstructure.cpp +++ b/test/linearstructure.cpp @@ -88,6 +88,10 @@ template void real_complex(DenseIndex rows = MatrixType::Ro g_called = false; VERIFY_IS_APPROX(m1*s, m1*Scalar(s)); VERIFY(g_called && "matrix * real not properly optimized"); + + g_called = false; + VERIFY_IS_APPROX(m1/s, m1/Scalar(s)); + VERIFY(g_called && "matrix / real not properly optimized"); } void test_linearstructure() -- cgit v1.2.3