10 #ifndef EIGEN_GPU_SPECIALFUNCTIONS_H
11 #define EIGEN_GPU_SPECIALFUNCTIONS_H
20 #if defined(EIGEN_GPUCC) && defined(EIGEN_USE_GPU)
23 float4 plgamma<float4>(
const float4& a)
25 return make_float4(lgammaf(
a.x), lgammaf(
a.y), lgammaf(
a.z), lgammaf(
a.w));
29 double2 plgamma<double2>(
const double2& a)
36 float4 pdigamma<float4>(
const float4& a)
38 using numext::digamma;
43 double2 pdigamma<double2>(
const double2& a)
45 using numext::digamma;
50 float4 pzeta<float4>(
const float4&
x,
const float4&
q)
57 double2 pzeta<double2>(
const double2&
x,
const double2&
q)
64 float4 ppolygamma<float4>(
const float4& n,
const float4&
x)
71 double2 ppolygamma<double2>(
const double2& n,
const double2&
x)
78 float4 perf<float4>(
const float4& a)
80 return make_float4(erff(
a.x), erff(
a.y), erff(
a.z), erff(
a.w));
84 double2 perf<double2>(
const double2& a)
87 return make_double2(
erf(
a.x),
erf(
a.y));
91 float4 perfc<float4>(
const float4& a)
98 double2 perfc<double2>(
const double2& a)
105 float4 pndtri<float4>(
const float4& a)
112 double2 pndtri<double2>(
const double2& a)
119 float4 pigamma<float4>(
const float4& a,
const float4&
x)
130 double2 pigamma<double2>(
const double2& a,
const double2&
x)
138 const float4& a,
const float4&
x) {
146 pigamma_der_a<double2>(
const double2& a,
const double2&
x) {
153 const float4& alpha,
const float4& sample) {
164 pgamma_sample_der_alpha<double2>(
const double2& alpha,
const double2& sample) {
172 float4 pigammac<float4>(
const float4& a,
const float4&
x)
183 double2 pigammac<double2>(
const double2& a,
const double2&
x)
190 float4 pbetainc<float4>(
const float4& a,
const float4&
b,
const float4&
x)
201 double2 pbetainc<double2>(
const double2& a,
const double2&
b,
const double2&
x)
215 pbessel_i0e<double2>(
const double2&
x) {
228 pbessel_i0<double2>(
const double2&
x) {
241 pbessel_i1e<double2>(
const double2&
x) {
254 pbessel_i1<double2>(
const double2&
x) {
267 pbessel_k0e<double2>(
const double2&
x) {
280 pbessel_k0<double2>(
const double2&
x) {
293 pbessel_k1e<double2>(
const double2&
x) {
306 pbessel_k1<double2>(
const double2&
x) {
319 pbessel_j0<double2>(
const double2&
x) {
332 pbessel_j1<double2>(
const double2&
x) {
345 pbessel_y0<double2>(
const double2&
x) {
358 pbessel_y1<double2>(
const double2&
x) {
#define EIGEN_DEVICE_FUNC
: TensorContractionSycl.h, provides various tensor contraction kernel for SYCL backend
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_erfc_op< typename Derived::Scalar >, const Derived > erfc(const Eigen::ArrayBase< Derived > &x)
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)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_j1_op< typename Derived::Scalar >, const Derived > bessel_j1(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_k0_op< typename Derived::Scalar >, const Derived > bessel_k0(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_y1_op< typename Derived::Scalar >, const Derived > bessel_y1(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_j0_op< typename Derived::Scalar >, const Derived > bessel_j0(const Eigen::ArrayBase< Derived > &x)
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)
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)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_k1_op< typename Derived::Scalar >, const Derived > bessel_k1(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)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_k0e_op< typename Derived::Scalar >, const Derived > bessel_k0e(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_y0_op< typename Derived::Scalar >, const Derived > bessel_y0(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_i0_op< typename Derived::Scalar >, const Derived > bessel_i0(const Eigen::ArrayBase< Derived > &x)
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_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_igamma_der_a_op< typename Derived::Scalar >, const Derived, const ExponentDerived > igamma_der_a(const Eigen::ArrayBase< Derived > &a, const Eigen::ArrayBase< ExponentDerived > &x)
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)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_i1_op< typename Derived::Scalar >, const Derived > bessel_i1(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_i1e_op< typename Derived::Scalar >, const Derived > bessel_i1e(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_i0e_op< typename Derived::Scalar >, const Derived > bessel_i0e(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::CwiseUnaryOp< Eigen::internal::scalar_bessel_k1e_op< typename Derived::Scalar >, const Derived > bessel_k1e(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)