diff options
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) |