rework the numeric traits now that we're using a namespace and no prefix

This commit is contained in:
Benoit Jacob
2007-10-12 05:56:36 +00:00
parent 3654ee8b07
commit a4626cc808
6 changed files with 65 additions and 53 deletions

View File

@@ -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"

View File

@@ -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)