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)
43 double2 pdigamma<double2>(
const double2&
a)
50 float4 pzeta<float4>(
const float4&
x,
const float4&
q)
57 double2 pzeta<double2>(
const double2&
x,
const double2&
q)
60 return make_double2(
zeta(x.x,
q.x),
zeta(x.y,
q.y));
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)
133 return make_double2(
igamma(a.x, x.x),
igamma(a.y, x.y));
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)
204 return make_double2(
betainc(a.x, b.x, x.x),
betainc(a.y, b.y, x.y));
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) {
369 #endif // EIGEN_GPU_SPECIALFUNCTIONS_H EIGEN_STRONG_INLINE const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_k1e_op< typename Derived::Scalar >, const Derived > bessel_k1e(const Eigen::ArrayBase< Derived > &x)
EIGEN_STRONG_INLINE const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_i1e_op< typename Derived::Scalar >, const Derived > bessel_i1e(const Eigen::ArrayBase< Derived > &x)
#define EIGEN_STRONG_INLINE
EIGEN_STRONG_INLINE 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)
EIGEN_DEVICE_FUNC const NdtriReturnType ndtri() const
EIGEN_DEVICE_FUNC const ErfReturnType erf() const
EIGEN_STRONG_INLINE const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_j1_op< typename Derived::Scalar >, const Derived > bessel_j1(const Eigen::ArrayBase< Derived > &x)
EIGEN_STRONG_INLINE 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)
Namespace containing all symbols from the Eigen library.
EIGEN_DEVICE_FUNC const ErfcReturnType erfc() const
EIGEN_DEVICE_FUNC const LgammaReturnType lgamma() const
const CwiseBinaryOp< internal::scalar_zeta_op< Scalar >, const Derived, const DerivedQ > zeta(const EIGEN_CURRENT_STORAGE_BASE_CLASS< DerivedQ > &q) const
EIGEN_STRONG_INLINE 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)
EIGEN_DEVICE_FUNC const DigammaReturnType digamma() const
EIGEN_STRONG_INLINE const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_y0_op< typename Derived::Scalar >, const Derived > bessel_y0(const Eigen::ArrayBase< Derived > &x)
EIGEN_STRONG_INLINE const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_i0e_op< typename Derived::Scalar >, const Derived > bessel_i0e(const Eigen::ArrayBase< Derived > &x)
EIGEN_DEVICE_FUNC const Scalar & q
#define EIGEN_DEVICE_FUNC
EIGEN_STRONG_INLINE const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_i0_op< typename Derived::Scalar >, const Derived > bessel_i0(const Eigen::ArrayBase< Derived > &x)
EIGEN_STRONG_INLINE const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_k1_op< typename Derived::Scalar >, const Derived > bessel_k1(const Eigen::ArrayBase< Derived > &x)
EIGEN_STRONG_INLINE const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_k0e_op< typename Derived::Scalar >, const Derived > bessel_k0e(const Eigen::ArrayBase< Derived > &x)
EIGEN_STRONG_INLINE 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)
EIGEN_STRONG_INLINE const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_y1_op< typename Derived::Scalar >, const Derived > bessel_y1(const Eigen::ArrayBase< Derived > &x)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE 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)
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
EIGEN_STRONG_INLINE 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)
EIGEN_STRONG_INLINE const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_k0_op< typename Derived::Scalar >, const Derived > bessel_k0(const Eigen::ArrayBase< Derived > &x)
EIGEN_STRONG_INLINE 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)
EIGEN_STRONG_INLINE const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_j0_op< typename Derived::Scalar >, const Derived > bessel_j0(const Eigen::ArrayBase< Derived > &x)
EIGEN_STRONG_INLINE const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_i1_op< typename Derived::Scalar >, const Derived > bessel_i1(const Eigen::ArrayBase< Derived > &x)