mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-11-21 03:11:25 +08:00
Update basicstuff unit test to avoid instantiating the ambiguous sqrt(int)
This commit is contained in:
parent
f8407742c1
commit
9cc016d3f9
@ -52,8 +52,7 @@ template<typename MatrixType> void basicStuff(const MatrixType& m)
|
||||
VERIFY_IS_APPROX( v1, v1);
|
||||
VERIFY_IS_NOT_APPROX( v1, 2*v1);
|
||||
VERIFY_IS_MUCH_SMALLER_THAN( vzero, v1);
|
||||
if(!NumTraits<Scalar>::IsInteger)
|
||||
VERIFY_IS_MUCH_SMALLER_THAN( vzero, v1.norm());
|
||||
VERIFY_IS_MUCH_SMALLER_THAN( vzero, v1.squaredNorm());
|
||||
VERIFY_IS_NOT_MUCH_SMALLER_THAN(v1, v1);
|
||||
VERIFY_IS_APPROX( vzero, v1-v1);
|
||||
VERIFY_IS_APPROX( m1, m1);
|
||||
|
Loading…
Reference in New Issue
Block a user