10 #ifndef EIGEN_MATH_FUNCTIONS_GPU_H
11 #define EIGEN_MATH_FUNCTIONS_GPU_H
20 #if defined(EIGEN_GPUCC) && defined(EIGEN_USE_GPU)
22 float4 plog<float4>(
const float4&
a)
24 return make_float4(logf(
a.x), logf(
a.y), logf(
a.z), logf(
a.w));
28 double2 plog<double2>(
const double2&
a)
31 return make_double2(
log(
a.x),
log(
a.y));
35 float4 plog1p<float4>(
const float4&
a)
37 return make_float4(log1pf(
a.x), log1pf(
a.y), log1pf(
a.z), log1pf(
a.w));
41 double2 plog1p<double2>(
const double2&
a)
47 float4 pexp<float4>(
const float4&
a)
49 return make_float4(expf(
a.x), expf(
a.y), expf(
a.z), expf(
a.w));
53 double2 pexp<double2>(
const double2&
a)
56 return make_double2(
exp(
a.x),
exp(
a.y));
60 float4 pexpm1<float4>(
const float4&
a)
62 return make_float4(expm1f(
a.x), expm1f(
a.y), expm1f(
a.z), expm1f(
a.w));
66 double2 pexpm1<double2>(
const double2&
a)
72 float4 psqrt<float4>(
const float4&
a)
74 return make_float4(sqrtf(
a.x), sqrtf(
a.y), sqrtf(
a.z), sqrtf(
a.w));
78 double2 psqrt<double2>(
const double2&
a)
85 float4 prsqrt<float4>(
const float4&
a)
87 return make_float4(rsqrtf(
a.x), rsqrtf(
a.y), rsqrtf(
a.z), rsqrtf(
a.w));
91 double2 prsqrt<double2>(
const double2&
a)
EIGEN_DEVICE_FUNC const ExpReturnType exp() const
Definition: ArrayCwiseUnaryOps.h:97
EIGEN_DEVICE_FUNC const LogReturnType log() const
Definition: ArrayCwiseUnaryOps.h:128
EIGEN_DEVICE_FUNC const SqrtReturnType sqrt() const
Definition: ArrayCwiseUnaryOps.h:187
EIGEN_DEVICE_FUNC const Log1pReturnType log1p() const
Definition: ArrayCwiseUnaryOps.h:142
EIGEN_DEVICE_FUNC const RsqrtReturnType rsqrt() const
Definition: ArrayCwiseUnaryOps.h:203
EIGEN_DEVICE_FUNC const Expm1ReturnType expm1() const
Definition: ArrayCwiseUnaryOps.h:111
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:976
#define EIGEN_STRONG_INLINE
Definition: Macros.h:917
Namespace containing all symbols from the Eigen library.
Definition: LDLT.h:16
Definition: document.h:416
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition: pointer.h:1181