aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-10-07 15:12:41 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-10-07 15:12:41 +0000
commit9eff68542893459bb0c665eeffcc74d680a184ad (patch)
treef9392780049cc16be595e4b7391cb3404f3bbc3a /test
parentae2072406c725912da95ec0843209f4a8e35beb7 (diff)
add matrix conjugation and adjunction.
compilation fixes in the numeric traits.
Diffstat (limited to 'test')
-rw-r--r--test/main.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/main.h b/test/main.h
index 06f295ece..1a6644530 100644
--- a/test/main.h
+++ b/test/main.h
@@ -47,11 +47,13 @@ class EigenTest : public QObject
void testMatrixManip();
};
-template<typename T> T TestEpsilon();
-template<> int TestEpsilon<int>() { return 0; }
-template<> float TestEpsilon<float>() { return 1e-2f; }
-template<> double TestEpsilon<double>() { return 1e-4; }
-template<typename T> T TestEpsilon<std::complex<T> >() { return TestEpsilon<T>(); }
+template<typename T> inline typename EiTraits<T>::Real TestEpsilon();
+template<> inline int TestEpsilon<int>() { return 0; }
+template<> inline float TestEpsilon<float>() { return 1e-2f; }
+template<> inline double TestEpsilon<double>() { return 1e-4; }
+template<> inline int TestEpsilon<std::complex<int> >() { return TestEpsilon<int>(); }
+template<> inline float TestEpsilon<std::complex<float> >() { return TestEpsilon<float>(); }
+template<> inline double TestEpsilon<std::complex<double> >() { return TestEpsilon<double>(); }
template<typename T> bool TestNegligible(const T& a, const T& b)
{