36 #ifndef EIGEN_HALF_CUDA_H 37 #define EIGEN_HALF_CUDA_H 39 #if __cplusplus > 199711L 40 #define EIGEN_EXPLICIT_CAST(tgt_type) explicit operator tgt_type() 42 #define EIGEN_EXPLICIT_CAST(tgt_type) operator tgt_type() 52 #if !defined(EIGEN_HAS_CUDA_FP16) 56 EIGEN_DEVICE_FUNC __half() {}
57 explicit EIGEN_DEVICE_FUNC __half(
unsigned short raw) : x(raw) {}
63 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC __half raw_uint16_to_half(
unsigned short x);
64 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC __half float_to_half_rtne(
float ff);
65 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC
float half_to_float(__half h);
67 struct half_base :
public __half {
68 EIGEN_DEVICE_FUNC half_base() {}
69 EIGEN_DEVICE_FUNC half_base(
const half_base& h) : __half(h) {}
70 EIGEN_DEVICE_FUNC half_base(
const __half& h) : __half(h) {}
76 struct half :
public half_impl::half_base {
77 #if !defined(EIGEN_HAS_CUDA_FP16) 78 typedef half_impl::__half __half;
81 EIGEN_DEVICE_FUNC half() {}
83 EIGEN_DEVICE_FUNC half(
const __half& h) : half_impl::half_base(h) {}
84 EIGEN_DEVICE_FUNC half(
const half& h) : half_impl::half_base(h) {}
86 explicit EIGEN_DEVICE_FUNC half(
bool b)
87 : half_impl::half_base(half_impl::raw_uint16_to_half(b ? 0x3c00 : 0)) {}
89 explicit EIGEN_DEVICE_FUNC half(
const T& val)
90 : half_impl::half_base(half_impl::float_to_half_rtne(static_cast<float>(val))) {}
91 explicit EIGEN_DEVICE_FUNC half(
float f)
92 : half_impl::half_base(half_impl::float_to_half_rtne(f)) {}
94 EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST(
bool)
const {
96 return (x & 0x7fff) != 0;
98 EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST(
signed char)
const {
99 return static_cast<signed char>(half_impl::half_to_float(*
this));
101 EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST(
unsigned char)
const {
102 return static_cast<unsigned char>(half_impl::half_to_float(*
this));
104 EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST(
short)
const {
105 return static_cast<short>(half_impl::half_to_float(*
this));
107 EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST(
unsigned short)
const {
108 return static_cast<unsigned short>(half_impl::half_to_float(*
this));
110 EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST(
int)
const {
111 return static_cast<int>(half_impl::half_to_float(*
this));
113 EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST(
unsigned int)
const {
114 return static_cast<unsigned int>(half_impl::half_to_float(*
this));
116 EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST(
long)
const {
117 return static_cast<long>(half_impl::half_to_float(*
this));
119 EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST(
unsigned long)
const {
120 return static_cast<unsigned long>(half_impl::half_to_float(*
this));
122 EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST(
long long)
const {
123 return static_cast<long long>(half_impl::half_to_float(*
this));
125 EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST(
unsigned long long)
const {
126 return static_cast<unsigned long long>(half_to_float(*
this));
128 EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST(
float)
const {
129 return half_impl::half_to_float(*
this);
131 EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST(
double)
const {
132 return static_cast<double>(half_impl::half_to_float(*
this));
135 EIGEN_DEVICE_FUNC half& operator=(
const half& other) {
141 namespace half_impl {
143 #if defined(EIGEN_HAS_CUDA_FP16) && defined(__CUDA_ARCH__) && __CUDA_ARCH__ >= 530 150 EIGEN_STRONG_INLINE __device__ half operator + (
const half& a,
const half& b) {
153 EIGEN_STRONG_INLINE __device__ half
operator * (
const half& a,
const half& b) {
156 EIGEN_STRONG_INLINE __device__ half operator - (
const half& a,
const half& b) {
159 EIGEN_STRONG_INLINE __device__ half operator / (
const half& a,
const half& b) {
160 float num = __half2float(a);
161 float denom = __half2float(b);
162 return __float2half(num / denom);
164 EIGEN_STRONG_INLINE __device__ half operator - (
const half& a) {
167 EIGEN_STRONG_INLINE __device__ half& operator += (half& a,
const half& b) {
171 EIGEN_STRONG_INLINE __device__ half& operator *= (half& a,
const half& b) {
175 EIGEN_STRONG_INLINE __device__ half& operator -= (half& a,
const half& b) {
179 EIGEN_STRONG_INLINE __device__ half& operator /= (half& a,
const half& b) {
183 EIGEN_STRONG_INLINE __device__
bool operator == (
const half& a,
const half& b) {
186 EIGEN_STRONG_INLINE __device__
bool operator != (
const half& a,
const half& b) {
189 EIGEN_STRONG_INLINE __device__
bool operator < (
const half& a,
const half& b) {
192 EIGEN_STRONG_INLINE __device__
bool operator <= (
const half& a,
const half& b) {
195 EIGEN_STRONG_INLINE __device__
bool operator > (
const half& a,
const half& b) {
198 EIGEN_STRONG_INLINE __device__
bool operator >= (
const half& a,
const half& b) {
202 #else // Emulate support for half floats 207 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half operator + (
const half& a,
const half& b) {
208 return half(
float(a) +
float(b));
210 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half
operator * (
const half& a,
const half& b) {
211 return half(
float(a) *
float(b));
213 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half operator - (
const half& a,
const half& b) {
214 return half(
float(a) -
float(b));
216 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half operator / (
const half& a,
const half& b) {
217 return half(
float(a) /
float(b));
219 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half operator - (
const half& a) {
221 result.x = a.x ^ 0x8000;
224 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half& operator += (half& a,
const half& b) {
225 a = half(
float(a) +
float(b));
228 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half& operator *= (half& a,
const half& b) {
229 a = half(
float(a) *
float(b));
232 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half& operator -= (half& a,
const half& b) {
233 a = half(
float(a) -
float(b));
236 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half& operator /= (half& a,
const half& b) {
237 a = half(
float(a) /
float(b));
240 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC
bool operator == (
const half& a,
const half& b) {
241 return numext::equal_strict(
float(a),
float(b));
243 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC
bool operator != (
const half& a,
const half& b) {
244 return numext::not_equal_strict(
float(a),
float(b));
246 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC
bool operator < (
const half& a,
const half& b) {
247 return float(a) < float(b);
249 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC
bool operator <= (
const half& a,
const half& b) {
250 return float(a) <= float(b);
252 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC
bool operator > (
const half& a,
const half& b) {
253 return float(a) > float(b);
255 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC
bool operator >= (
const half& a,
const half& b) {
256 return float(a) >= float(b);
259 #endif // Emulate support for half floats 263 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half operator / (
const half& a,
Index b) {
264 return half(static_cast<float>(a) / static_cast<float>(b));
272 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC __half raw_uint16_to_half(
unsigned short x) {
283 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC __half float_to_half_rtne(
float ff) {
284 #if defined(EIGEN_HAS_CUDA_FP16) && defined(__CUDA_ARCH__) && __CUDA_ARCH__ >= 300 285 return __float2half(ff);
287 #elif defined(EIGEN_HAS_FP16_C) 289 h.x = _cvtss_sh(ff, 0);
295 const FP32 f32infty = { 255 << 23 };
296 const FP32 f16max = { (127 + 16) << 23 };
297 const FP32 denorm_magic = { ((127 - 15) + (23 - 10) + 1) << 23 };
298 unsigned int sign_mask = 0x80000000u;
300 o.x =
static_cast<unsigned short>(0x0u);
302 unsigned int sign = f.u & sign_mask;
310 if (f.u >= f16max.u) {
311 o.x = (f.u > f32infty.u) ? 0x7e00 : 0x7c00;
313 if (f.u < (113 << 23)) {
317 f.f += denorm_magic.f;
320 o.x =
static_cast<unsigned short>(f.u - denorm_magic.u);
322 unsigned int mant_odd = (f.u >> 13) & 1;
325 f.u += ((
unsigned int)(15 - 127) << 23) + 0xfff;
329 o.x =
static_cast<unsigned short>(f.u >> 13);
333 o.x |=
static_cast<unsigned short>(
sign >> 16);
338 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC
float half_to_float(__half h) {
339 #if defined(EIGEN_HAS_CUDA_FP16) && defined(__CUDA_ARCH__) && __CUDA_ARCH__ >= 300 340 return __half2float(h);
342 #elif defined(EIGEN_HAS_FP16_C) 343 return _cvtsh_ss(h.x);
346 const FP32 magic = { 113 << 23 };
347 const unsigned int shifted_exp = 0x7c00 << 13;
350 o.u = (h.x & 0x7fff) << 13;
351 unsigned int exp = shifted_exp & o.u;
352 o.u += (127 - 15) << 23;
355 if (
exp == shifted_exp) {
356 o.u += (128 - 16) << 23;
357 }
else if (
exp == 0) {
362 o.u |= (h.x & 0x8000) << 16;
369 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bool (
isinf)(
const half& a) {
370 return (a.x & 0x7fff) == 0x7c00;
372 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bool (
isnan)(
const half& a) {
373 #if defined(EIGEN_HAS_CUDA_FP16) && defined(__CUDA_ARCH__) && __CUDA_ARCH__ >= 530 376 return (a.x & 0x7fff) > 0x7c00;
379 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bool (
isfinite)(
const half& a) {
380 return !(
isinf EIGEN_NOT_A_MACRO (a)) && !(
isnan EIGEN_NOT_A_MACRO (a));
383 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half
abs(
const half& a) {
385 result.x = a.x & 0x7FFF;
388 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half
exp(
const half& a) {
389 #if EIGEN_CUDACC_VER >= 80000 && defined EIGEN_CUDA_ARCH && EIGEN_CUDA_ARCH >= 530 390 return half(hexp(a));
392 return half(::expf(
float(a)));
395 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half
log(
const half& a) {
396 #if defined(EIGEN_HAS_CUDA_FP16) && EIGEN_CUDACC_VER >= 80000 && defined(EIGEN_CUDA_ARCH) && EIGEN_CUDA_ARCH >= 530 397 return half(::hlog(a));
399 return half(::logf(
float(a)));
402 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half
log1p(
const half& a) {
403 return half(numext::log1p(
float(a)));
405 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half
log10(
const half& a) {
406 return half(::log10f(
float(a)));
408 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half
sqrt(
const half& a) {
409 #if EIGEN_CUDACC_VER >= 80000 && defined EIGEN_CUDA_ARCH && EIGEN_CUDA_ARCH >= 530 410 return half(hsqrt(a));
412 return half(::sqrtf(
float(a)));
415 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half pow(
const half& a,
const half& b) {
416 return half(::powf(
float(a),
float(b)));
418 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half
sin(
const half& a) {
419 return half(::sinf(
float(a)));
421 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half
cos(
const half& a) {
422 return half(::cosf(
float(a)));
424 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half
tan(
const half& a) {
425 return half(::tanf(
float(a)));
427 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half
tanh(
const half& a) {
428 return half(::tanhf(
float(a)));
430 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half
floor(
const half& a) {
431 #if EIGEN_CUDACC_VER >= 80000 && defined EIGEN_CUDA_ARCH && EIGEN_CUDA_ARCH >= 300 432 return half(hfloor(a));
434 return half(::floorf(
float(a)));
437 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half
ceil(
const half& a) {
438 #if EIGEN_CUDACC_VER >= 80000 && defined EIGEN_CUDA_ARCH && EIGEN_CUDA_ARCH >= 300 439 return half(hceil(a));
441 return half(::ceilf(
float(a)));
445 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half (min)(
const half& a,
const half& b) {
446 #if defined(EIGEN_HAS_CUDA_FP16) && defined(__CUDA_ARCH__) && __CUDA_ARCH__ >= 530 447 return __hlt(b, a) ? b : a;
449 const float f1 =
static_cast<float>(a);
450 const float f2 =
static_cast<float>(b);
451 return f2 < f1 ? b : a;
454 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half (max)(
const half& a,
const half& b) {
455 #if defined(EIGEN_HAS_CUDA_FP16) && defined(__CUDA_ARCH__) && __CUDA_ARCH__ >= 530 456 return __hlt(a, b) ? b : a;
458 const float f1 =
static_cast<float>(a);
459 const float f2 =
static_cast<float>(b);
460 return f1 < f2 ? b : a;
464 EIGEN_ALWAYS_INLINE std::ostream& operator << (std::ostream& os,
const half& v) {
465 os << static_cast<float>(v);
477 struct random_default_impl<half, false, false>
479 static inline half run(
const half& x,
const half& y)
481 return x + (y-x) * half(
float(std::rand()) / float(RAND_MAX));
483 static inline half run()
485 return run(half(-1.f), half(1.f));
489 template<>
struct is_arithmetic<half> {
enum { value =
true }; };
497 struct numeric_limits<
Eigen::half> {
498 static const bool is_specialized =
true;
499 static const bool is_signed =
true;
500 static const bool is_integer =
false;
501 static const bool is_exact =
false;
502 static const bool has_infinity =
true;
503 static const bool has_quiet_NaN =
true;
504 static const bool has_signaling_NaN =
true;
505 static const float_denorm_style has_denorm = denorm_present;
506 static const bool has_denorm_loss =
false;
507 static const std::float_round_style round_style = std::round_to_nearest;
508 static const bool is_iec559 =
false;
509 static const bool is_bounded =
false;
510 static const bool is_modulo =
false;
511 static const int digits = 11;
512 static const int digits10 = 3;
513 static const int max_digits10 = 5;
514 static const int radix = 2;
515 static const int min_exponent = -13;
516 static const int min_exponent10 = -4;
517 static const int max_exponent = 16;
518 static const int max_exponent10 = 4;
519 static const bool traps =
true;
520 static const bool tinyness_before =
false;
522 static Eigen::half (min)() {
return Eigen::half_impl::raw_uint16_to_half(0x400); }
523 static Eigen::half lowest() {
return Eigen::half_impl::raw_uint16_to_half(0xfbff); }
524 static Eigen::half (max)() {
return Eigen::half_impl::raw_uint16_to_half(0x7bff); }
525 static Eigen::half epsilon() {
return Eigen::half_impl::raw_uint16_to_half(0x0800); }
526 static Eigen::half round_error() {
return Eigen::half(0.5); }
527 static Eigen::half infinity() {
return Eigen::half_impl::raw_uint16_to_half(0x7c00); }
528 static Eigen::half quiet_NaN() {
return Eigen::half_impl::raw_uint16_to_half(0x7e00); }
529 static Eigen::half signaling_NaN() {
return Eigen::half_impl::raw_uint16_to_half(0x7e00); }
530 static Eigen::half denorm_min() {
return Eigen::half_impl::raw_uint16_to_half(0x1); }
536 template<>
struct NumTraits<
Eigen::half>
537 : GenericNumTraits<Eigen::half>
543 RequireInitialization =
false 546 EIGEN_DEVICE_FUNC
static EIGEN_STRONG_INLINE Eigen::half epsilon() {
547 return half_impl::raw_uint16_to_half(0x0800);
549 EIGEN_DEVICE_FUNC
static EIGEN_STRONG_INLINE Eigen::half dummy_precision() {
return Eigen::half(1e-2f); }
550 EIGEN_DEVICE_FUNC
static EIGEN_STRONG_INLINE Eigen::half highest() {
551 return half_impl::raw_uint16_to_half(0x7bff);
553 EIGEN_DEVICE_FUNC
static EIGEN_STRONG_INLINE Eigen::half lowest() {
554 return half_impl::raw_uint16_to_half(0xfbff);
556 EIGEN_DEVICE_FUNC
static EIGEN_STRONG_INLINE Eigen::half infinity() {
557 return half_impl::raw_uint16_to_half(0x7c00);
559 EIGEN_DEVICE_FUNC
static EIGEN_STRONG_INLINE Eigen::half quiet_NaN() {
560 return half_impl::raw_uint16_to_half(0x7c01);
567 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half fabsh(
const Eigen::half& a) {
569 result.x = a.x & 0x7FFF;
572 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half exph(
const Eigen::half& a) {
573 return Eigen::half(::expf(
float(a)));
575 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half logh(
const Eigen::half& a) {
576 #if EIGEN_CUDACC_VER >= 80000 && defined(EIGEN_CUDA_ARCH) && EIGEN_CUDA_ARCH >= 530 577 return Eigen::half(::hlog(a));
579 return Eigen::half(::logf(
float(a)));
582 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half sqrth(
const Eigen::half& a) {
583 return Eigen::half(::sqrtf(
float(a)));
585 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half powh(
const Eigen::half& a,
const Eigen::half& b) {
586 return Eigen::half(::powf(
float(a),
float(b)));
588 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half floorh(
const Eigen::half& a) {
589 return Eigen::half(::floorf(
float(a)));
591 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half ceilh(
const Eigen::half& a) {
592 return Eigen::half(::ceilf(
float(a)));
597 #if __cplusplus > 199711L 599 struct hash<
Eigen::half> {
600 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE std::size_t operator()(
const Eigen::half& a)
const {
601 return static_cast<std::size_t
>(a.x);
610 #if defined(__CUDA_ARCH__) && __CUDA_ARCH__ >= 300 611 __device__ EIGEN_STRONG_INLINE Eigen::half __shfl_xor(Eigen::half var,
int laneMask,
int width=warpSize) {
612 return static_cast<Eigen::half
>(__shfl_xor(static_cast<float>(var), laneMask, width));
617 #if defined(__CUDA_ARCH__) && __CUDA_ARCH__ >= 350 618 EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::half __ldg(
const Eigen::half* ptr) {
619 return Eigen::half_impl::raw_uint16_to_half(
620 __ldg(reinterpret_cast<const unsigned short*>(ptr)));
625 #if defined(__CUDA_ARCH__) 630 EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
631 bool (
isnan)(
const Eigen::half& h) {
632 return (half_impl::isnan)(h);
636 EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
637 bool (
isinf)(
const Eigen::half& h) {
638 return (half_impl::isinf)(h);
642 EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
643 bool (
isfinite)(
const Eigen::half& h) {
644 return (half_impl::isfinite)(h);
651 #endif // EIGEN_HALF_CUDA_H const Eigen::CwiseUnaryOp< Eigen::internal::scalar_tanh_op< typename Derived::Scalar >, const Derived > tanh(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_isfinite_op< typename Derived::Scalar >, const Derived > isfinite(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_sqrt_op< typename Derived::Scalar >, const Derived > sqrt(const Eigen::ArrayBase< Derived > &x)
Namespace containing all symbols from the Eigen library.
Definition: Core:306
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_ceil_op< typename Derived::Scalar >, const Derived > ceil(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_isnan_op< typename Derived::Scalar >, const Derived > isnan(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_cos_op< typename Derived::Scalar >, const Derived > cos(const Eigen::ArrayBase< Derived > &x)
const Product< MatrixDerived, PermutationDerived, AliasFreeProduct > operator*(const MatrixBase< MatrixDerived > &matrix, const PermutationBase< PermutationDerived > &permutation)
Definition: PermutationMatrix.h:543
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:33
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_floor_op< typename Derived::Scalar >, const Derived > floor(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_log1p_op< typename Derived::Scalar >, const Derived > log1p(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_isinf_op< typename Derived::Scalar >, const Derived > isinf(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_abs_op< typename Derived::Scalar >, const Derived > abs(const Eigen::ArrayBase< Derived > &x)
Definition: Eigen_Colamd.h:50
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_log_op< typename Derived::Scalar >, const Derived > log(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_tan_op< typename Derived::Scalar >, const Derived > tan(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_sign_op< typename Derived::Scalar >, const Derived > sign(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_sin_op< typename Derived::Scalar >, const Derived > sin(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_exp_op< typename Derived::Scalar >, const Derived > exp(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_log10_op< typename Derived::Scalar >, const Derived > log10(const Eigen::ArrayBase< Derived > &x)