8#ifndef EIGEN_SPECIALFUNCTIONS_HALF_H
9#define EIGEN_SPECIALFUNCTIONS_HALF_H
15template<> EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half lgamma(
const Eigen::half& a) {
16 return Eigen::half(Eigen::numext::lgamma(
static_cast<float>(a)));
18template<> EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half digamma(
const Eigen::half& a) {
19 return Eigen::half(Eigen::numext::digamma(
static_cast<float>(a)));
21template<> EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half
zeta(
const Eigen::half& x,
const Eigen::half& q) {
22 return Eigen::half(Eigen::numext::zeta(
static_cast<float>(x),
static_cast<float>(q)));
24template<> EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half
polygamma(
const Eigen::half& n,
const Eigen::half& x) {
25 return Eigen::half(Eigen::numext::polygamma(
static_cast<float>(n),
static_cast<float>(x)));
27template<> EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half erf(
const Eigen::half& a) {
28 return Eigen::half(Eigen::numext::erf(
static_cast<float>(a)));
30template<> EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half erfc(
const Eigen::half& a) {
31 return Eigen::half(Eigen::numext::erfc(
static_cast<float>(a)));
33template<> EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half
igamma(
const Eigen::half& a,
const Eigen::half& x) {
34 return Eigen::half(Eigen::numext::igamma(
static_cast<float>(a),
static_cast<float>(x)));
36template<> EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half
igammac(
const Eigen::half& a,
const Eigen::half& x) {
37 return Eigen::half(Eigen::numext::igammac(
static_cast<float>(a),
static_cast<float>(x)));
39template<> EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half
betainc(
const Eigen::half& a,
const Eigen::half& b,
const Eigen::half& x) {
40 return Eigen::half(Eigen::numext::betainc(
static_cast<float>(a),
static_cast<float>(b),
static_cast<float>(x)));
Namespace containing all symbols from the Eigen library.
Definition: AdolcForward:45
const Eigen::CwiseBinaryOp< Eigen::internal::scalar_igammac_op< typename Derived::Scalar >, const Derived, const ExponentDerived > igammac(const Eigen::ArrayBase< Derived > &a, const Eigen::ArrayBase< ExponentDerived > &x)
Definition: SpecialFunctionsArrayAPI.h:48
const TensorCwiseTernaryOp< internal::scalar_betainc_op< typename XDerived::Scalar >, const ADerived, const BDerived, const XDerived > betainc(const ADerived &a, const BDerived &b, const XDerived &x)
Definition: TensorGlobalFunctions.h:24
const Eigen::CwiseBinaryOp< Eigen::internal::scalar_polygamma_op< typename DerivedX::Scalar >, const DerivedN, const DerivedX > polygamma(const Eigen::ArrayBase< DerivedN > &n, const Eigen::ArrayBase< DerivedX > &x)
Definition: SpecialFunctionsArrayAPI.h:70
const Eigen::CwiseBinaryOp< Eigen::internal::scalar_igamma_op< typename Derived::Scalar >, const Derived, const ExponentDerived > igamma(const Eigen::ArrayBase< Derived > &a, const Eigen::ArrayBase< ExponentDerived > &x)
Definition: SpecialFunctionsArrayAPI.h:28
const Eigen::CwiseBinaryOp< Eigen::internal::scalar_zeta_op< typename DerivedX::Scalar >, const DerivedX, const DerivedQ > zeta(const Eigen::ArrayBase< DerivedX > &x, const Eigen::ArrayBase< DerivedQ > &q)
Definition: SpecialFunctionsArrayAPI.h:114