diff options
author | 2007-10-12 05:56:36 +0000 | |
---|---|---|
committer | 2007-10-12 05:56:36 +0000 | |
commit | a4626cc80837007673dd95e43c4a97e636ae79eb (patch) | |
tree | dde883c8571e7da732f292a4afd206edaa9c98f3 /test | |
parent | 3654ee8b07ae4d2ce6167768f9ab8a52456c462b (diff) |
rework the numeric traits now that we're using a namespace and no prefix
Diffstat (limited to 'test')
-rw-r--r-- | test/main.cpp | 2 | ||||
-rw-r--r-- | test/main.h | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/test/main.cpp b/test/main.cpp index 8610cf363..f5c758961 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -25,7 +25,7 @@ #include "main.h" -genTest::genTest() +EigenTest::EigenTest() { unsigned int t = (unsigned int) time( NULL ); qDebug() << "Initializing random number generator with seed" diff --git a/test/main.h b/test/main.h index 47ea1b928..85968134c 100644 --- a/test/main.h +++ b/test/main.h @@ -29,7 +29,7 @@ #include <QtTest/QtTest> #include "../src/Core.h" -USING_EIGEN_DATA_TYPES +using namespace Eigen; #include <cstdlib> #include <ctime> @@ -62,6 +62,9 @@ template<typename T> bool TestNegligible(const T& a, const T& b) return(Abs(a) <= Abs(b) * TestEpsilon<T>()); } +//template<typename Scalar, typename Derived, typename OtherDerived> +//bool TestNegligible + template<typename T> bool TestApprox(const T& a, const T& b) { if(Eigen::NumTraits<T>::IsFloat) |