diff options
author | Gael Guennebaud <g.gael@free.fr> | 2010-06-20 00:35:33 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2010-06-20 00:35:33 +0200 |
commit | e3853353fb12e243b13a324da8ab1d3f47a87786 (patch) | |
tree | 34fd406e4215b93839a6e790f9375c1a8bb5890b /test/mixingtypes.cpp | |
parent | 7fd8418b199cda8b7facb37fccbe871375c5b6d2 (diff) |
fix array_comp *= array_real
Diffstat (limited to 'test/mixingtypes.cpp')
-rw-r--r-- | test/mixingtypes.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/mixingtypes.cpp b/test/mixingtypes.cpp index c6cf00d28..0465f3059 100644 --- a/test/mixingtypes.cpp +++ b/test/mixingtypes.cpp @@ -97,6 +97,13 @@ template<int SizeAtCompileType> void mixingtypes(int size = SizeAtCompileType) // check outer product VERIFY_IS_APPROX((vf * vcf.transpose()).eval(), (vf.template cast<complex<float> >() * vcf.transpose()).eval()); + + // coeff wise product + + VERIFY_IS_APPROX((vf * vcf.transpose()).eval(), (vf.template cast<complex<float> >() * vcf.transpose()).eval()); + + Mat_cd mcd2 = mcd; + VERIFY_IS_APPROX(mcd.array() *= md.array(), mcd2.array() *= md.array().template cast<std::complex<double> >()); } |