aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/main.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-11-23 10:13:21 -0500
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-11-23 10:13:21 -0500
commit44d0d667cd629a18e29b9c248633891c1b04f75c (patch)
tree9df7106246634e052c2686371f20e1c07325eeb0 /test/main.h
parent06f11f337951982f240c161933229812c391e979 (diff)
4x4 inverse:
* change block selection threshold from 1e-2 to 1e-1 * add rigorous precision test
Diffstat (limited to 'test/main.h')
-rw-r--r--test/main.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/test/main.h b/test/main.h
index 0b9b0bc4c..3ae573c1e 100644
--- a/test/main.h
+++ b/test/main.h
@@ -372,6 +372,14 @@ template<> struct GetDifferentType<double> { typedef float type; };
template<typename T> struct GetDifferentType<std::complex<T> >
{ typedef std::complex<typename GetDifferentType<T>::type> type; };
+template<typename T> std::string type_name() { return "other"; }
+template<> std::string type_name<float>() { return "float"; }
+template<> std::string type_name<double>() { return "double"; }
+template<> std::string type_name<int>() { return "int"; }
+template<> std::string type_name<std::complex<float> >() { return "complex<float>"; }
+template<> std::string type_name<std::complex<double> >() { return "complex<double>"; }
+template<> std::string type_name<std::complex<int> >() { return "complex<int>"; }
+
// forward declaration of the main test function
void EIGEN_CAT(test_,EIGEN_TEST_FUNC)();
@@ -444,7 +452,4 @@ int main(int argc, char *argv[])
EIGEN_CAT(test_,EIGEN_TEST_FUNC)();
return 0;
-}
-
-
-
+} \ No newline at end of file