Eigen-Contrib  5.0.1
 
Loading...
Searching...
No Matches
BesselFunctionsHalf.h
1// This file is part of Eigen, a lightweight C++ template library
2// for linear algebra.
3//
4// This Source Code Form is subject to the terms of the Mozilla
5// Public License v. 2.0. If a copy of the MPL was not distributed
6// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
7// SPDX-FileCopyrightText: The Eigen Authors
8// SPDX-License-Identifier: MPL-2.0
9
10#ifndef EIGEN_BESSELFUNCTIONS_HALF_H
11#define EIGEN_BESSELFUNCTIONS_HALF_H
12
13// IWYU pragma: private
14#include "./InternalHeaderCheck.h"
15
16namespace Eigen {
17namespace numext {
18
19template <>
20EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half bessel_i0(const Eigen::half& x) {
21 return Eigen::half(Eigen::numext::bessel_i0(static_cast<float>(x)));
22}
23template <>
24EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half bessel_i0e(const Eigen::half& x) {
25 return Eigen::half(Eigen::numext::bessel_i0e(static_cast<float>(x)));
26}
27template <>
28EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half bessel_i1(const Eigen::half& x) {
29 return Eigen::half(Eigen::numext::bessel_i1(static_cast<float>(x)));
30}
31template <>
32EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half bessel_i1e(const Eigen::half& x) {
33 return Eigen::half(Eigen::numext::bessel_i1e(static_cast<float>(x)));
34}
35EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half bessel_j0(const Eigen::half& x) {
36 return Eigen::half(Eigen::numext::bessel_j0(static_cast<float>(x)));
37}
38template <>
39EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half bessel_j1(const Eigen::half& x) {
40 return Eigen::half(Eigen::numext::bessel_j1(static_cast<float>(x)));
41}
42template <>
43EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half bessel_y0(const Eigen::half& x) {
44 return Eigen::half(Eigen::numext::bessel_y0(static_cast<float>(x)));
45}
46template <>
47EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half bessel_y1(const Eigen::half& x) {
48 return Eigen::half(Eigen::numext::bessel_y1(static_cast<float>(x)));
49}
50EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half bessel_k0(const Eigen::half& x) {
51 return Eigen::half(Eigen::numext::bessel_k0(static_cast<float>(x)));
52}
53template <>
54EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half bessel_k0e(const Eigen::half& x) {
55 return Eigen::half(Eigen::numext::bessel_k0e(static_cast<float>(x)));
56}
57template <>
58EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half bessel_k1(const Eigen::half& x) {
59 return Eigen::half(Eigen::numext::bessel_k1(static_cast<float>(x)));
60}
61template <>
62EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half bessel_k1e(const Eigen::half& x) {
63 return Eigen::half(Eigen::numext::bessel_k1e(static_cast<float>(x)));
64}
65
66} // end namespace numext
67} // end namespace Eigen
68
69#endif // EIGEN_BESSELFUNCTIONS_HALF_H
Namespace containing all symbols from the Eigen library.