mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-15 07:10:37 +08:00
Declare the half float type as arithmetic.
This commit is contained in:
parent
5cd00068c0
commit
6270d851e3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user