fpclassify isn't portable enough. In particular, the return values of the function are not available on all the platforms Eigen supportes: remove it from Eigen.

This commit is contained in:
Benoit Steiner
2016-04-27 14:22:20 -07:00
parent f629fe95c8
commit c61170e87d
2 changed files with 0 additions and 30 deletions

View File

@@ -937,15 +937,6 @@ template<typename T> EIGEN_DEVICE_FUNC bool (isnan) (const T &x) { return inte
template<typename T> EIGEN_DEVICE_FUNC bool (isinf) (const T &x) { return internal::isinf_impl(x); }
template<typename T> EIGEN_DEVICE_FUNC bool (isfinite)(const T &x) { return internal::isfinite_impl(x); }
template<typename T> EIGEN_DEVICE_FUNC int (fpclassify)(const T& x){
#ifdef __CUDA_ARCH__
return (::fpclassify)(x);
#else
using std::fpclassify;
return fpclassify(x);
#endif
}
template<typename Scalar>
EIGEN_DEVICE_FUNC
inline EIGEN_MATHFUNC_RETVAL(round, Scalar) round(const Scalar& x)