Fixed a typo

This commit is contained in:
Benoit Steiner 2016-03-31 10:33:32 -07:00
parent af4ef540bf
commit 8c8a79cec1

View File

@ -348,7 +348,7 @@ namespace numext {
static inline EIGEN_DEVICE_FUNC bool (isinf)(const Eigen::half& a) { static inline EIGEN_DEVICE_FUNC bool (isinf)(const Eigen::half& a) {
return (a.x & 0x7fff) == 0x7c00; return (a.x & 0x7fff) == 0x7c00;
} }
static inline EIGEN_HALF_CUDA_H bool (isnan)(const Eigen::half& a) { static inline EIGEN_DEVICE_FUNC bool (isnan)(const Eigen::half& a) {
#if defined(EIGEN_HAS_CUDA_FP16) && defined(__CUDA_ARCH__) && __CUDA_ARCH__ >= 530 #if defined(EIGEN_HAS_CUDA_FP16) && defined(__CUDA_ARCH__) && __CUDA_ARCH__ >= 530
return __hisnan(a); return __hisnan(a);
#else #else