10 #ifndef EIGEN_MATH_FUNCTIONS_GPU_H
11 #define EIGEN_MATH_FUNCTIONS_GPU_H
14 #include "../../InternalHeaderCheck.h"
23 #if defined(EIGEN_GPUCC) && defined(EIGEN_USE_GPU)
26 return make_float4(logf(
a.x), logf(
a.y), logf(
a.z), logf(
a.w));
32 return make_double2(
log(
a.x),
log(
a.y));
37 return make_float4(log1pf(
a.x), log1pf(
a.y), log1pf(
a.z), log1pf(
a.w));
47 return make_float4(expf(
a.x), expf(
a.y), expf(
a.z), expf(
a.w));
53 return make_double2(
exp(
a.x),
exp(
a.y));
58 return make_float4(exp2f(
a.x), exp2f(
a.y), exp2f(
a.z), exp2f(
a.w));
69 return make_float4(expm1f(
a.x), expm1f(
a.y), expm1f(
a.z), expm1f(
a.w));
79 return make_float4(sqrtf(
a.x), sqrtf(
a.y), sqrtf(
a.z), sqrtf(
a.w));
90 return make_float4(rsqrtf(
a.x), rsqrtf(
a.y), rsqrtf(
a.z), rsqrtf(
a.w));
AnnoyingScalar sqrt(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:134
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:892
#define EIGEN_STRONG_INLINE
Definition: Macros.h:834
const Scalar * a
Definition: level2_cplx_impl.h:32
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 exp(const bfloat16 &a)
Definition: BFloat16.h:615
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 expm1(const bfloat16 &a)
Definition: BFloat16.h:617
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 log(const bfloat16 &a)
Definition: BFloat16.h:618
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 exp2(const bfloat16 &a)
Definition: BFloat16.h:616
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 log1p(const bfloat16 &a)
Definition: BFloat16.h:619
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T rsqrt(const T &x)
Definition: MathFunctions.h:1327
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:70
Definition: Eigen_Colamd.h:49