mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-30 17:40:05 +08:00
use dummy_precision by default instead of 0
This commit is contained in:
parent
90d6fc0e28
commit
d4d4382b18
@ -282,7 +282,7 @@ namespace Eigen
|
|||||||
|
|
||||||
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 float test_precision<float>() { return 1e-3f; }
|
||||||
template<> inline double test_precision<double>() { return 1e-6; }
|
template<> inline double test_precision<double>() { return 1e-6; }
|
||||||
template<> inline float test_precision<std::complex<float> >() { return test_precision<float>(); }
|
template<> inline float test_precision<std::complex<float> >() { return test_precision<float>(); }
|
||||||
|
Loading…
Reference in New Issue
Block a user