From 06e1e0d83be56b4b38041fb19749ae79303c09c5 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Wed, 10 Oct 2007 06:09:56 +0000 Subject: fix dot product, add norm/norm2/normalized add fuzzy compares for matrices/vectors add random matrix/vector generation --- test/main.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/main.h b/test/main.h index 91d63c7f8..05853481c 100644 --- a/test/main.h +++ b/test/main.h @@ -47,7 +47,7 @@ class EigenTest : public QObject void testMatrixManip(); }; -template inline typename EiTraits::Real TestEpsilon(); +template inline typename EiNumTraits::Real TestEpsilon(); template<> inline int TestEpsilon() { return 0; } template<> inline float TestEpsilon() { return 1e-2f; } template<> inline double TestEpsilon() { return 1e-4; } @@ -62,7 +62,7 @@ template bool TestNegligible(const T& a, const T& b) template bool TestApprox(const T& a, const T& b) { - if(EiTraits::IsFloat) + if(EiNumTraits::IsFloat) return(EiAbs(a - b) <= std::min(EiAbs(a), EiAbs(b)) * TestEpsilon()); else return(a == b); @@ -70,7 +70,7 @@ template bool TestApprox(const T& a, const T& b) template bool TestLessThanOrApprox(const T& a, const T& b) { - if(EiTraits::IsFloat) + if(EiNumTraits::IsFloat) return(a < b || EiApprox(a, b)); else return(a <= b); -- cgit v1.2.3