mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
rework the numeric traits now that we're using a namespace and no prefix
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user