Add special path for matrix<complex>/real.

This also fixes underflow issues when scaling complex matrices through complex/complex operator.
This commit is contained in:
Gael Guennebaud
2015-06-26 16:08:15 +02:00
parent e102ddbf1f
commit 98ff17eb9e
6 changed files with 33 additions and 1 deletions

View File

@@ -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()