mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-12 09:23:12 +08:00
check for mixing types in "array / scalar" expressions
This commit is contained in:
parent
fabae6c9a1
commit
2ca2ffb65e
@ -71,6 +71,10 @@ template<int SizeAtCompileType> void mixingtypes(int size = SizeAtCompileType)
|
||||
VERIFY_IS_APPROX(vf * scf , vf.template cast<complex<float> >() * scf);
|
||||
VERIFY_IS_APPROX(scd * vd , scd * vd.template cast<complex<double> >());
|
||||
|
||||
// check scalar quotients
|
||||
VERIFY_IS_APPROX(vcf / sf , vcf / complex<float>(sf));
|
||||
VERIFY_IS_APPROX(vf / scf , vf.template cast<complex<float> >() / scf);
|
||||
|
||||
// check dot product
|
||||
vf.dot(vf);
|
||||
#if 0 // we get other compilation errors here than just static asserts
|
||||
|
Loading…
x
Reference in New Issue
Block a user