Optimization: "matrix<complex> * real" did not call the special path and the real was converted to a complex. Add respective unit test to avoid future regression.

This commit is contained in:
Gael Guennebaud
2014-09-02 14:41:14 +02:00
parent 305aa1f9c5
commit 3eb5253ca1
3 changed files with 36 additions and 1 deletions

View File

@@ -81,6 +81,7 @@ template<typename Derived> class MatrixBase
using Base::operator-=;
using Base::operator*=;
using Base::operator/=;
using Base::operator*;
typedef typename Base::CoeffReturnType CoeffReturnType;
typedef typename Base::ConstTransposeReturnType ConstTransposeReturnType;