8#ifndef EIGEN_SPECIALFUNCTIONS_HALF_H
9#define EIGEN_SPECIALFUNCTIONS_HALF_H
12#include "./InternalHeaderCheck.h"
19EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half
lgamma(
const Eigen::half& a) {
20 return Eigen::half(Eigen::numext::lgamma(
static_cast<float>(a)));
23EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half
digamma(
const Eigen::half& a) {
24 return Eigen::half(Eigen::numext::digamma(
static_cast<float>(a)));
27EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half
zeta(
const Eigen::half& x,
const Eigen::half& q) {
28 return Eigen::half(Eigen::numext::zeta(
static_cast<float>(x),
static_cast<float>(q)));
31EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half
polygamma(
const Eigen::half& n,
const Eigen::half& x) {
32 return Eigen::half(Eigen::numext::polygamma(
static_cast<float>(n),
static_cast<float>(x)));
35EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half
erf(
const Eigen::half& a) {
36 return Eigen::half(Eigen::numext::erf(
static_cast<float>(a)));
39EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half
erfc(
const Eigen::half& a) {
40 return Eigen::half(Eigen::numext::erfc(
static_cast<float>(a)));
43EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half
ndtri(
const Eigen::half& a) {
44 return Eigen::half(Eigen::numext::ndtri(
static_cast<float>(a)));
47EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half
igamma(
const Eigen::half& a,
const Eigen::half& x) {
48 return Eigen::half(Eigen::numext::igamma(
static_cast<float>(a),
static_cast<float>(x)));
51EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half
igamma_der_a(
const Eigen::half& a,
const Eigen::half& x) {
52 return Eigen::half(Eigen::numext::igamma_der_a(
static_cast<float>(a),
static_cast<float>(x)));
56 const Eigen::half& sample) {
57 return Eigen::half(Eigen::numext::gamma_sample_der_alpha(
static_cast<float>(alpha),
static_cast<float>(sample)));
60EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half
igammac(
const Eigen::half& a,
const Eigen::half& x) {
61 return Eigen::half(Eigen::numext::igammac(
static_cast<float>(a),
static_cast<float>(x)));
64EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half
betainc(
const Eigen::half& a,
const Eigen::half& b,
65 const Eigen::half& x) {
66 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.
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:93
const Eigen::CwiseBinaryOp< Eigen::internal::scalar_igamma_der_a_op< typename Derived::Scalar >, const Derived, const ExponentDerived > igamma_der_a(const Eigen::ArrayBase< Derived > &a, const Eigen::ArrayBase< ExponentDerived > &x)
Definition SpecialFunctionsArrayAPI.h:52
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_lgamma_op< typename Derived::Scalar >, const Derived > lgamma(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_erf_op< typename Derived::Scalar >, const Derived > erf(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseBinaryOp< Eigen::internal::scalar_gamma_sample_der_alpha_op< typename AlphaDerived::Scalar >, const AlphaDerived, const SampleDerived > gamma_sample_der_alpha(const Eigen::ArrayBase< AlphaDerived > &alpha, const Eigen::ArrayBase< SampleDerived > &sample)
Definition SpecialFunctionsArrayAPI.h:75
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_erfc_op< typename Derived::Scalar >, const Derived > erfc(const Eigen::ArrayBase< Derived > &x)
const TensorCwiseTernaryOp< internal::scalar_betainc_op< typename XDerived::Scalar >, const ADerived, const BDerived, const XDerived > betainc(const Eigen::TensorBase< ADerived, ReadOnlyAccessors > &a, const Eigen::TensorBase< BDerived, ReadOnlyAccessors > &b, const Eigen::TensorBase< XDerived, ReadOnlyAccessors > &x)
Definition TensorGlobalFunctions.h:26
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_ndtri_op< typename Derived::Scalar >, const Derived > ndtri(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_digamma_op< typename Derived::Scalar >, const Derived > digamma(const Eigen::ArrayBase< Derived > &x)
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:113
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:31
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:152