diff options
author | 2016-02-22 13:59:33 -0800 | |
---|---|---|
committer | 2016-02-22 13:59:33 -0800 | |
commit | 6270d851e3082b272d4a2cd723ac800fa954224e (patch) | |
tree | adb7df761637e4b888dea09e9f40d2b6e31e4f79 /Eigen/src/Core/arch | |
parent | 5cd00068c0830a55414cd91ea621a547d0c5097f (diff) |
Declare the half float type as arithmetic.
Diffstat (limited to 'Eigen/src/Core/arch')
-rw-r--r-- | Eigen/src/Core/arch/CUDA/PacketMathHalf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Eigen/src/Core/arch/CUDA/PacketMathHalf.h b/Eigen/src/Core/arch/CUDA/PacketMathHalf.h index bd42cb558..1a1b4ec3d 100644 --- a/Eigen/src/Core/arch/CUDA/PacketMathHalf.h +++ b/Eigen/src/Core/arch/CUDA/PacketMathHalf.h @@ -64,6 +64,7 @@ __device__ half abs(const half& a) { namespace Eigen { namespace internal { +template<> struct is_arithmetic<half> { enum { value = true }; }; template<> struct is_arithmetic<half2> { enum { value = true }; }; template<> struct packet_traits<half> : default_packet_traits |