diff options
author | Gael Guennebaud <g.gael@free.fr> | 2011-01-27 13:51:17 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2011-01-27 13:51:17 +0100 |
commit | 999678c3f0f93426713d6f723c7a15f7a6570f45 (patch) | |
tree | de8c9ec86dbd08211a7139a30826437120504763 /test/mixingtypes.cpp | |
parent | 40998f5e868932b9815c764d81e382f307d67bb0 (diff) |
fix mixingtypes unit test
Diffstat (limited to 'test/mixingtypes.cpp')
-rw-r--r-- | test/mixingtypes.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/mixingtypes.cpp b/test/mixingtypes.cpp index 0ebd00d1d..8afb733cd 100644 --- a/test/mixingtypes.cpp +++ b/test/mixingtypes.cpp @@ -83,8 +83,7 @@ template<int SizeAtCompileType> void mixingtypes(int size = SizeAtCompileType) #if 0 // we get other compilation errors here than just static asserts VERIFY_RAISES_ASSERT(vd.dot(vf)); #endif - VERIFY_RAISES_ASSERT(vcf.dot(vf)); // yeah eventually we should allow this but i'm too lazy to make that change now in Dot.h - // especially as that might be rewritten as cwise product .sum() which would make that automatic. + VERIFY_IS_APPROX(vcf.dot(vf), vcf.dot(vf.template cast<complex<float> >())); // check diagonal product VERIFY_IS_APPROX(vf.asDiagonal() * mcf, vf.template cast<complex<float> >().asDiagonal() * mcf); |