14 #if defined(EIGEN_GPU_COMPILE_PHASE)
18 #if defined(EIGEN_CUDA_ARCH)
22 #if defined(EIGEN_HIP_DEVICE_COMPILE)
29 #define EIGEN_ICC_NEEDS_CSTDINT (EIGEN_COMP_ICC>=1600 && EIGEN_COMP_CXXVER >= 11)
32 #if EIGEN_HAS_CXX11 || EIGEN_ICC_NEEDS_CSTDINT
87 #if EIGEN_ICC_NEEDS_CSTDINT
94 #undef EIGEN_ICC_NEEDS_CSTDINT
99 template<
bool Condition>
108 template<
bool Condition,
typename Then,
typename Else>
111 template<
typename Then,
typename Else>
148 template<
typename T,
typename U>
struct is_same {
enum {
value = 0 }; };
156 template<>
struct is_arithmetic<unsigned long long> {
enum {
value =
true }; };
157 using std::is_integral;
172 template<>
struct is_integral<unsigned __int64> {
enum {
value =
true }; };
177 using std::make_unsigned;
193 template<>
struct make_unsigned<signed __int64> {
typedef unsigned __int64
type; };
194 template<>
struct make_unsigned<unsigned __int64> {
typedef unsigned __int64
type; };
202 #if EIGEN_OS_MAC || EIGEN_COMP_MINGW
203 template<>
struct make_unsigned<unsigned long long> {
typedef unsigned long long type; };
204 template<>
struct make_unsigned<long long> {
typedef unsigned long long type; };
222 using std::is_convertible;
226 template<
typename From,
typename To>
246 #ifdef __INTEL_COMPILER
248 #pragma warning ( disable : 2259 )
251 #ifdef __INTEL_COMPILER
256 template<
typename From,
typename To>
273 template<
bool Condition,
typename T=
void>
struct enable_if;
278 #if defined(EIGEN_GPU_COMPILE_PHASE) && !EIGEN_HAS_CXX11
279 #if !defined(__FLT_EPSILON__)
280 #define __FLT_EPSILON__ FLT_EPSILON
281 #define __DBL_EPSILON__ DBL_EPSILON
286 template<
typename T>
struct numeric_limits
290 static T (
max)() { assert(
false &&
"Highest not supported for this type"); }
291 static T (
min)() { assert(
false &&
"Lowest not supported for this type"); }
292 static T infinity() { assert(
false &&
"Infinity not supported for this type"); }
293 static T quiet_NaN() { assert(
false &&
"quiet_NaN not supported for this type"); }
295 template<>
struct numeric_limits<float>
298 static float epsilon() {
return __FLT_EPSILON__; }
300 static float (
max)() {
301 #if defined(EIGEN_CUDA_ARCH)
302 return CUDART_MAX_NORMAL_F;
308 static float (
min)() {
return FLT_MIN; }
310 static float infinity() {
311 #if defined(EIGEN_CUDA_ARCH)
318 static float quiet_NaN() {
319 #if defined(EIGEN_CUDA_ARCH)
326 template<>
struct numeric_limits<double>
329 static double epsilon() {
return __DBL_EPSILON__; }
331 static double (
max)() {
return DBL_MAX; }
333 static double (
min)() {
return DBL_MIN; }
335 static double infinity() {
336 #if defined(EIGEN_CUDA_ARCH)
343 static double quiet_NaN() {
344 #if defined(EIGEN_CUDA_ARCH)
351 template<>
struct numeric_limits<int>
354 static int epsilon() {
return 0; }
356 static int (
max)() {
return INT_MAX; }
358 static int (
min)() {
return INT_MIN; }
360 template<>
struct numeric_limits<unsigned int>
363 static unsigned int epsilon() {
return 0; }
365 static unsigned int (
max)() {
return UINT_MAX; }
367 static unsigned int (
min)() {
return 0; }
369 template<>
struct numeric_limits<long>
372 static long epsilon() {
return 0; }
374 static long (
max)() {
return LONG_MAX; }
376 static long (
min)() {
return LONG_MIN; }
378 template<>
struct numeric_limits<unsigned long>
381 static unsigned long epsilon() {
return 0; }
383 static unsigned long (
max)() {
return ULONG_MAX; }
385 static unsigned long (
min)() {
return 0; }
387 template<>
struct numeric_limits<long long>
390 static long long epsilon() {
return 0; }
392 static long long (
max)() {
return LLONG_MAX; }
394 static long long (
min)() {
return LLONG_MIN; }
396 template<>
struct numeric_limits<unsigned long long>
399 static unsigned long long epsilon() {
return 0; }
401 static unsigned long long (
max)() {
return ULLONG_MAX; }
403 static unsigned long long (
min)() {
return 0; }
405 template<>
struct numeric_limits<bool>
408 static bool epsilon() {
return false; }
410 static bool (
max)() {
return true; }
412 static bool (
min)() {
return false; }
445 template<
typename T,
typename EnableIf =
void>
struct array_size {
450 enum {
value = T::SizeAtCompileTime };
461 template<
typename T, std::
size_t N>
struct array_size<
const std::array<T,N> > {
464 template<
typename T, std::
size_t N>
struct array_size<
std::
array<T,N> > {
481 template<
typename T,std::
size_t N>
499 #if EIGEN_HAS_STD_INVOKE_RESULT
500 template<
typename T>
struct result_of;
502 template<
typename F,
typename... ArgTypes>
503 struct result_of<F(ArgTypes...)> {
504 typedef typename std::invoke_result<F, ArgTypes...>
::type type1;
507 #elif EIGEN_HAS_STD_RESULT_OF
508 template<
typename T>
struct result_of {
519 template<
typename Func,
int SizeOf>
522 template<
typename Func>
525 template<
typename Func>
528 template<
typename Func>
537 enum {FunctorType =
sizeof(testFunctor(
static_cast<Func*
>(0)))};
541 template<
typename Func,
typename ArgType,
int SizeOf=sizeof(has_none)>
544 template<
typename Func,
typename ArgType>
547 template<
typename Func,
typename ArgType>
550 template<
typename Func,
typename ArgType>
559 enum {FunctorType =
sizeof(testFunctor(
static_cast<Func*
>(0)))};
563 template<
typename Func,
typename ArgType0,
typename ArgType1,
int SizeOf=sizeof(has_none)>
566 template<
typename Func,
typename ArgType0,
typename ArgType1>
568 {
typedef typename Func::result_type
type;};
570 template<
typename Func,
typename ArgType0,
typename ArgType1>
572 {
typedef typename Func::template result<Func(ArgType0,ArgType1)>
::type type;};
574 template<
typename Func,
typename ArgType0,
typename ArgType1>
583 enum {FunctorType =
sizeof(testFunctor(
static_cast<Func*
>(0)))};
587 template<
typename Func,
typename ArgType0,
typename ArgType1,
typename ArgType2,
int SizeOf=sizeof(has_none)>
590 template<
typename Func,
typename ArgType0,
typename ArgType1,
typename ArgType2>
592 {
typedef typename Func::result_type
type;};
594 template<
typename Func,
typename ArgType0,
typename ArgType1,
typename ArgType2>
596 {
typedef typename Func::template result<Func(ArgType0,ArgType1,ArgType2)>
::type type;};
598 template<
typename Func,
typename ArgType0,
typename ArgType1,
typename ArgType2>
607 enum {FunctorType =
sizeof(testFunctor(
static_cast<Func*
>(0)))};
613 #if EIGEN_HAS_STD_INVOKE_RESULT
614 template<
typename F,
typename... ArgTypes>
616 typedef typename std::invoke_result<F, ArgTypes...>
::type type1;
619 #elif EIGEN_HAS_CXX11
620 template<
typename F,
typename... ArgTypes>
621 struct invoke_result {
622 typedef typename result_of<F(ArgTypes...)>
::type type1;
626 template<
typename F,
typename ArgType0 =
void,
typename ArgType1 =
void,
typename ArgType2 =
void>
638 template<
typename F,
typename ArgType0>
644 template<
typename F,
typename ArgType0,
typename ArgType1>
655 template <
typename T>
661 enum {
value =
sizeof(testFunctor<T>(
static_cast<T*
>(0))) ==
sizeof(
meta_yes) };
666 template <
typename T,
typename IndexType=Index>
675 template <
typename T,
typename IndexType=Index>
684 template <
typename T,
typename IndexType=Index>
698 int SupX = ((Y==1) ? 1 : Y/2),
699 bool Done = ((SupX-InfX)<=1 ?
true : ((SupX*SupX <= Y) && ((SupX+1)*(SupX+1) > Y))) >
704 MidX = (InfX+SupX)/2,
705 TakeInf = MidX*MidX > Y ? 1 : 0,
706 NewInf =
int(TakeInf) ? InfX : int(MidX),
707 NewSup = int(TakeInf) ? int(MidX) : SupX
713 template<
int Y,
int InfX,
int SupX>
714 class meta_sqrt<Y, InfX, SupX, true> {
public:
enum {
ret = (SupX*SupX <= Y) ? SupX : InfX }; };
720 template<
int A,
int B,
int K=1,
bool Done = ((A*K)%B)==0,
bool Big=(A>=B)>
725 template<
int A,
int B,
int K,
bool Done>
730 template<
int A,
int B,
int K>
752 template<
unsigned Len,
unsigned Align>
763 #if defined(EIGEN_GPU_COMPILE_PHASE)
769 #if defined(EIGEN_GPU_COMPILE_PHASE) && !EIGEN_HAS_CXX11
770 using internal::device::numeric_limits;
772 using std::numeric_limits;
789 #if !defined(EIGEN_GPU_COMPILE_PHASE) || (!defined(EIGEN_CUDA_ARCH) && defined(EIGEN_CONSTEXPR_ARE_DEVICE_FUNC))
791 bool equal_strict(
const float& x,
const float&
y) {
return std::equal_to<float>()(x,
y); }
794 bool equal_strict(
const double& x,
const double&
y) {
return std::equal_to<double>()(x,
y); }
800 #if !defined(EIGEN_GPU_COMPILE_PHASE) || (!defined(EIGEN_CUDA_ARCH) && defined(EIGEN_CONSTEXPR_ARE_DEVICE_FUNC))
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE
Definition: Macros.h:33
#define EIGEN_CONSTEXPR
Definition: Macros.h:787
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:976
#define EIGEN_STRONG_INLINE
Definition: Macros.h:917
EIGEN_DEVICE_FUNC noncopyable(const noncopyable &)
EIGEN_DEVICE_FUNC ~noncopyable()
Definition: Meta.h:428
EIGEN_DEVICE_FUNC const noncopyable & operator=(const noncopyable &)
EIGEN_DEVICE_FUNC noncopyable()
Definition: Meta.h:427
#define HIPRT_INF
Definition: math_constants.h:20
#define HIPRT_INF_F
Definition: math_constants.h:11
#define HIPRT_MAX_NORMAL_F
Definition: math_constants.h:14
#define HIPRT_NAN_F
Definition: math_constants.h:12
#define HIPRT_NAN
Definition: math_constants.h:21
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16() max(const bfloat16 &a, const bfloat16 &b)
Definition: BFloat16.h:576
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16() min(const bfloat16 &a, const bfloat16 &b)
Definition: BFloat16.h:571
std::size_t UIntPtr
Definition: Meta.h:92
const Scalar & y
Definition: MathFunctions.h:821
std::ptrdiff_t IntPtr
Definition: Meta.h:91
EIGEN_CONSTEXPR Index size(const T &x)
Definition: Meta.h:479
void swap(scoped_array< T > &a, scoped_array< T > &b)
Definition: Memory.h:709
::uint64_t uint64_t
Definition: Meta.h:58
::int16_t int16_t
Definition: Meta.h:55
::uint16_t uint16_t
Definition: Meta.h:54
::uint32_t uint32_t
Definition: Meta.h:56
::int32_t int32_t
Definition: Meta.h:57
::int8_t int8_t
Definition: Meta.h:53
::int64_t int64_t
Definition: Meta.h:59
::uint8_t uint8_t
Definition: Meta.h:52
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bool equal_strict(const double &x, const double &y)
Definition: Meta.h:794
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bool not_equal_strict(const double &x, const double &y)
Definition: Meta.h:805
EIGEN_DEVICE_FUNC T div_ceil(const T &a, const T &b)
Definition: Meta.h:779
Namespace containing all symbols from the Eigen library.
Definition: LDLT.h:16
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:74
EIGEN_DEFAULT_DENSE_INDEX_TYPE DenseIndex
Definition: Meta.h:66
const int Dynamic
Definition: Constants.h:22
type
The type the bitset is encoded with.
Definition: bitset.hpp:44
@ array
array (ordered collection of values)
Definition: document.h:416
Definition: json.hpp:5678
NLOHMANN_BASIC_JSON_TPL_DECLARATION void swap(nlohmann::NLOHMANN_BASIC_JSON_TPL &j1, nlohmann::NLOHMANN_BASIC_JSON_TPL &j2) noexcept(//NOLINT(readability-inconsistent-declaration-parameter-name, cert-dcl58-cpp) is_nothrow_move_constructible< nlohmann::NLOHMANN_BASIC_JSON_TPL >::value &&//NOLINT(misc-redundant-expression, cppcoreguidelines-noexcept-swap, performance-noexcept-swap) is_nothrow_move_assignable< nlohmann::NLOHMANN_BASIC_JSON_TPL >::value)
exchanges the values of two JSON objects
Definition: json.hpp:25399
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1282
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition: pointer.h:1181
signed short int16_t
Definition: stdint.h:122
unsigned short uint16_t
Definition: stdint.h:125
_W64 unsigned int uintptr_t
Definition: stdint.h:165
signed __int64 int64_t
Definition: stdint.h:135
unsigned int uint32_t
Definition: stdint.h:126
signed int int32_t
Definition: stdint.h:123
unsigned char uint8_t
Definition: stdint.h:124
_W64 signed int intptr_t
Definition: stdint.h:164
unsigned __int64 uint64_t
Definition: stdint.h:136
signed char int8_t
Definition: stdint.h:121
T & type
Definition: Meta.h:209
T const * type
Definition: Meta.h:216
T const *const type
Definition: Meta.h:217
T const & type
Definition: Meta.h:215
T const *const type
Definition: Meta.h:218
const T type
Definition: Meta.h:214
const T type
Definition: Meta.h:208
EIGEN_ALIGN_TO_BOUNDARY(Align) unsigned char data[Len]
@ value
Definition: Meta.h:446
Func::result_type type
Definition: Meta.h:568
Func::template result< Func(ArgType0, ArgType1)>::type type
Definition: Meta.h:572
internal::remove_all< ArgType0 >::type type
Definition: Meta.h:564
Else type
Definition: Meta.h:112
Then type
Definition: Meta.h:109
T type
Definition: Meta.h:276
@ value
Definition: Meta.h:97
@ value
Definition: Meta.h:661
static meta_yes testFunctor(C const *, typename C::ReturnType const *=0)
static meta_no testFunctor(...)
@ value
Definition: Meta.h:690
static meta_no testFunctor(...)
static meta_yes testFunctor(C const *, typename enable_if<(sizeof(return_ptr< C >() ->operator()(IndexType(0), IndexType(0)))>0)>::type *=0)
int a[1]
Definition: Meta.h:515
@ value
Definition: Meta.h:672
static meta_no testFunctor(...)
static meta_yes testFunctor(C const *, typename enable_if<(sizeof(return_ptr< C >() ->operator()())>0)>::type *=0)
int a[2]
Definition: Meta.h:516
int a[3]
Definition: Meta.h:517
@ value
Definition: Meta.h:681
static meta_no testFunctor(...)
static meta_yes testFunctor(C const *, typename enable_if<(sizeof(return_ptr< C >() ->operator()(IndexType(0)))>0)>::type *=0)
remove_all< type1 >::type type
Definition: Meta.h:647
result_of< F(ArgType0, ArgType1)>::type type1
Definition: Meta.h:646
result_of< F(ArgType0)>::type type1
Definition: Meta.h:640
remove_all< type1 >::type type
Definition: Meta.h:641
result_of< F()>::type type1
Definition: Meta.h:634
remove_all< type1 >::type type
Definition: Meta.h:635
remove_all< type1 >::type type
Definition: Meta.h:629
result_of< F(ArgType0, ArgType1, ArgType2)>::type type1
Definition: Meta.h:628
@ value
Definition: Meta.h:133
@ value
Definition: Meta.h:211
any_conversion(const volatile T &)
int a[2]
Definition: Meta.h:236
int a[1]
Definition: Meta.h:235
static internal::remove_reference< From >::type * ms_from
Definition: Meta.h:245
static no test(any_conversion,...)
@ value
Definition: Meta.h:250
@ value
Definition: Meta.h:259
@ value
Definition: Meta.h:159
@ value
Definition: Meta.h:148
unsigned char type
Definition: Meta.h:183
unsigned char type
Definition: Meta.h:184
unsigned int type
Definition: Meta.h:188
unsigned long type
Definition: Meta.h:190
unsigned short type
Definition: Meta.h:186
unsigned char type
Definition: Meta.h:185
unsigned int type
Definition: Meta.h:189
unsigned long type
Definition: Meta.h:191
unsigned short type
Definition: Meta.h:187
Func::result_type type
Definition: Meta.h:523
Func::template result< Func()>::type type
Definition: Meta.h:526
remove_all< T >::type type
Definition: Meta.h:131
remove_all< T >::type type
Definition: Meta.h:129
remove_all< T >::type type
Definition: Meta.h:130
remove_all< T >::type type
Definition: Meta.h:128
remove_all< T >::type type
Definition: Meta.h:127
T type
Definition: Meta.h:126
T type
Definition: Meta.h:122
T type
Definition: Meta.h:121
T type
Definition: Meta.h:118
T type
Definition: Meta.h:119
T type
Definition: Meta.h:117
T type
Definition: Meta.h:115
T type
Definition: Meta.h:114
static has_std_result_type testFunctor(T const *, typename T::result_type const *=0)
static has_none testFunctor(...)
ternary_result_of_select< Func, ArgType0, ArgType1, ArgType2, FunctorType >::type type
Definition: Meta.h:608
static has_tr1_result testFunctor(T const *, typename T::template result< T(ArgType0, ArgType1, ArgType2)>::type const *=0)
static has_none testFunctor(...)
binary_result_of_select< Func, ArgType0, ArgType1, FunctorType >::type type
Definition: Meta.h:584
static has_tr1_result testFunctor(T const *, typename T::template result< T(ArgType0, ArgType1)>::type const *=0)
static has_std_result_type testFunctor(T const *, typename T::result_type const *=0)
unary_result_of_select< Func, ArgType, FunctorType >::type type
Definition: Meta.h:560
static has_std_result_type testFunctor(T const *, typename T::result_type const *=0)
static has_tr1_result testFunctor(T const *, typename T::template result< T(ArgType)>::type const *=0)
static has_none testFunctor(...)
static has_none testFunctor(...)
static has_std_result_type testFunctor(T const *, typename T::result_type const *=0)
nullary_result_of_select< Func, FunctorType >::type type
Definition: Meta.h:538
static has_tr1_result testFunctor(T const *, typename T::template result< T()>::type const *=0)
@ Defined
Definition: Meta.h:740
Func::result_type type
Definition: Meta.h:592
Func::template result< Func(ArgType0, ArgType1, ArgType2)>::type type
Definition: Meta.h:596
internal::remove_all< ArgType0 >::type type
Definition: Meta.h:588
@ value
Definition: Meta.h:96
Func::result_type type
Definition: Meta.h:545
Func::template result< Func(ArgType)>::type type
Definition: Meta.h:548
internal::remove_all< ArgType >::type type
Definition: Meta.h:542
#define const
Definition: zconf.h:233