aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/linearstructure.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-06-26 16:08:15 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-06-26 16:08:15 +0200
commit98ff17eb9e70ad62a2dad2eaee2900eb2f110720 (patch)
tree50089c9ddd7a6ee1d91ef44e4adbed33b4a28273 /test/linearstructure.cpp
parente102ddbf1fce646c3fbc0ee600cb3cce70c8b93c (diff)
Add special path for matrix<complex>/real.
This also fixes underflow issues when scaling complex matrices through complex/complex operator.
Diffstat (limited to 'test/linearstructure.cpp')
-rw-r--r--test/linearstructure.cpp4
1 files changed, 4 insertions, 0 deletions
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<typename MatrixType> void real_complex(DenseIndex rows = MatrixType::Ro
g_called = false;
VERIFY_IS_APPROX(m1*s, m1*Scalar(s));
VERIFY(g_called && "matrix<complex> * real not properly optimized");
+
+ g_called = false;
+ VERIFY_IS_APPROX(m1/s, m1/Scalar(s));
+ VERIFY(g_called && "matrix<complex> / real not properly optimized");
}
void test_linearstructure()