diff options
author | Gael Guennebaud <g.gael@free.fr> | 2017-09-06 10:22:47 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2017-09-06 10:22:47 +0200 |
commit | 9c353dd1450c362175213c1018b15b24ac840826 (patch) | |
tree | 98c5f8136b6c0380b7fd8ffe5f5687a91ce18b74 /Eigen/src/Core/arch/CUDA | |
parent | b35d1ce4a532a40e16927bb303a4c48b2bef1d7c (diff) |
Add C++11 max_digits10 for half.
Diffstat (limited to 'Eigen/src/Core/arch/CUDA')
-rw-r--r-- | Eigen/src/Core/arch/CUDA/Half.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/arch/CUDA/Half.h b/Eigen/src/Core/arch/CUDA/Half.h index 1c557767a..ee24e615a 100644 --- a/Eigen/src/Core/arch/CUDA/Half.h +++ b/Eigen/src/Core/arch/CUDA/Half.h @@ -520,8 +520,8 @@ struct numeric_limits<Eigen::half> { static const bool is_bounded = false; static const bool is_modulo = false; static const int digits = 11; - static const int digits10 = 2; - //static const int max_digits10 = ; + static const int digits10 = 3; // according to http://half.sourceforge.net/structstd_1_1numeric__limits_3_01half__float_1_1half_01_4.html + static const int max_digits10 = 5; // according to http://half.sourceforge.net/structstd_1_1numeric__limits_3_01half__float_1_1half_01_4.html static const int radix = 2; static const int min_exponent = -13; static const int min_exponent10 = -4; |