8 #ifndef EIGEN_BESSELFUNCTIONS_HALF_H
9 #define EIGEN_BESSELFUNCTIONS_HALF_H
14 #if EIGEN_HAS_C99_MATH
16 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half bessel_i0(
const Eigen::half& x) {
17 return Eigen::half(Eigen::numext::bessel_i0(static_cast<float>(x)));
20 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half bessel_i0e(
const Eigen::half& x) {
21 return Eigen::half(Eigen::numext::bessel_i0e(static_cast<float>(x)));
24 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half bessel_i1(
const Eigen::half& x) {
25 return Eigen::half(Eigen::numext::bessel_i1(static_cast<float>(x)));
28 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half bessel_i1e(
const Eigen::half& x) {
29 return Eigen::half(Eigen::numext::bessel_i1e(static_cast<float>(x)));
31 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half bessel_j0(
const Eigen::half& x) {
32 return Eigen::half(Eigen::numext::bessel_j0(static_cast<float>(x)));
35 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half bessel_j1(
const Eigen::half& x) {
36 return Eigen::half(Eigen::numext::bessel_j1(static_cast<float>(x)));
39 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half bessel_y0(
const Eigen::half& x) {
40 return Eigen::half(Eigen::numext::bessel_y0(static_cast<float>(x)));
43 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half bessel_y1(
const Eigen::half& x) {
44 return Eigen::half(Eigen::numext::bessel_y1(static_cast<float>(x)));
46 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half bessel_k0(
const Eigen::half& x) {
47 return Eigen::half(Eigen::numext::bessel_k0(static_cast<float>(x)));
50 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half bessel_k0e(
const Eigen::half& x) {
51 return Eigen::half(Eigen::numext::bessel_k0e(static_cast<float>(x)));
54 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half bessel_k1(
const Eigen::half& x) {
55 return Eigen::half(Eigen::numext::bessel_k1(static_cast<float>(x)));
58 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half bessel_k1e(
const Eigen::half& x) {
59 return Eigen::half(Eigen::numext::bessel_k1e(static_cast<float>(x)));
66 #endif // EIGEN_BESSELFUNCTIONS_HALF_H