diff options
author | Gael Guennebaud <g.gael@free.fr> | 2010-07-14 22:50:03 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2010-07-14 22:50:03 +0200 |
commit | d4d4382b187fc7e1dcabdf0d2358226ced7ff4b5 (patch) | |
tree | b4c44b8f1a1ab1eeaf091d9ac278275ca82151e4 /test/main.h | |
parent | 90d6fc0e28d8f955b0b6efdd6ee9b62facd357c6 (diff) |
use dummy_precision by default instead of 0
Diffstat (limited to 'test/main.h')
-rw-r--r-- | test/main.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/main.h b/test/main.h index 604685c26..1104adaa6 100644 --- a/test/main.h +++ b/test/main.h @@ -282,7 +282,7 @@ namespace Eigen namespace Eigen { -template<typename T> inline typename NumTraits<T>::Real test_precision() { return T(0); } +template<typename T> inline typename NumTraits<T>::Real test_precision() { return NumTraits<T>::dummy_precision(); } template<> inline float test_precision<float>() { return 1e-3f; } template<> inline double test_precision<double>() { return 1e-6; } template<> inline float test_precision<std::complex<float> >() { return test_precision<float>(); } |