mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-30 17:40:05 +08:00
Avoid double promotion
This commit is contained in:
parent
69a8a4e1f3
commit
1660e749b4
@ -302,7 +302,7 @@ namespace Eigen {
|
||||
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 long double test_precision<long double>() { return 1e-6; }
|
||||
template<> inline long double test_precision<long double>() { return 1e-6l; }
|
||||
template<> inline float test_precision<std::complex<float> >() { return test_precision<float>(); }
|
||||
template<> inline double test_precision<std::complex<double> >() { return test_precision<double>(); }
|
||||
template<> inline long double test_precision<std::complex<long double> >() { return test_precision<long double>(); }
|
||||
|
Loading…
Reference in New Issue
Block a user