Eigen::internal::TensorUInt128< HIGH, LOW > Struct Template Reference

#include <TensorUInt128.h>

Public Member Functions

template<typename OTHER_HIGH , typename OTHER_LOW >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE TensorUInt128 (const TensorUInt128< OTHER_HIGH, OTHER_LOW > &other)
 
template<typename OTHER_HIGH , typename OTHER_LOW >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE TensorUInt128operator= (const TensorUInt128< OTHER_HIGH, OTHER_LOW > &other)
 
template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE TensorUInt128 (const T &x)
 
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE TensorUInt128 (HIGH y, LOW x)
 
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE operator LOW () const
 
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE LOW lower () const
 
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE HIGH upper () const
 

Public Attributes

HIGH high
 
LOW low
 

Constructor & Destructor Documentation

◆ TensorUInt128() [1/3]

template<typename HIGH = uint64_t, typename LOW = uint64_t>
template<typename OTHER_HIGH , typename OTHER_LOW >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Eigen::internal::TensorUInt128< HIGH, LOW >::TensorUInt128 ( const TensorUInt128< OTHER_HIGH, OTHER_LOW > &  other)
inline
40  : high(other.high), low(other.low) {
41  EIGEN_STATIC_ASSERT(sizeof(OTHER_HIGH) <= sizeof(HIGH), YOU_MADE_A_PROGRAMMING_MISTAKE);
42  EIGEN_STATIC_ASSERT(sizeof(OTHER_LOW) <= sizeof(LOW), YOU_MADE_A_PROGRAMMING_MISTAKE);
43  }
#define EIGEN_STATIC_ASSERT(X, MSG)
Definition: StaticAssert.h:26
HIGH high
Definition: TensorUInt128.h:35
LOW low
Definition: TensorUInt128.h:36

References EIGEN_STATIC_ASSERT.

◆ TensorUInt128() [2/3]

template<typename HIGH = uint64_t, typename LOW = uint64_t>
template<typename T >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Eigen::internal::TensorUInt128< HIGH, LOW >::TensorUInt128 ( const T x)
inlineexplicit
55  : high(0), low(x) {
57  (static_cast<std::conditional_t<sizeof(T) == 8, uint64_t, uint32_t>>(x) <= NumTraits<uint64_t>::highest()));
58  eigen_assert(x >= 0);
59  }
#define eigen_assert(x)
Definition: Macros.h:910
std::uint32_t uint32_t
Definition: Meta.h:40
std::uint64_t uint64_t
Definition: Meta.h:42
list x
Definition: plotDoE.py:28

References eigen_assert, and plotDoE::x.

◆ TensorUInt128() [3/3]

template<typename HIGH = uint64_t, typename LOW = uint64_t>
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Eigen::internal::TensorUInt128< HIGH, LOW >::TensorUInt128 ( HIGH  y,
LOW  x 
)
inline
61 : high(y), low(x) {}
const Scalar & y
Definition: RandomImpl.h:36

Member Function Documentation

◆ lower()

template<typename HIGH = uint64_t, typename LOW = uint64_t>
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE LOW Eigen::internal::TensorUInt128< HIGH, LOW >::lower ( ) const
inline

◆ operator LOW()

template<typename HIGH = uint64_t, typename LOW = uint64_t>
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Eigen::internal::TensorUInt128< HIGH, LOW >::operator LOW ( ) const
inline

◆ operator=()

template<typename HIGH = uint64_t, typename LOW = uint64_t>
template<typename OTHER_HIGH , typename OTHER_LOW >
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE TensorUInt128& Eigen::internal::TensorUInt128< HIGH, LOW >::operator= ( const TensorUInt128< OTHER_HIGH, OTHER_LOW > &  other)
inline
46  {
47  EIGEN_STATIC_ASSERT(sizeof(OTHER_HIGH) <= sizeof(HIGH), YOU_MADE_A_PROGRAMMING_MISTAKE);
48  EIGEN_STATIC_ASSERT(sizeof(OTHER_LOW) <= sizeof(LOW), YOU_MADE_A_PROGRAMMING_MISTAKE);
49  high = other.high;
50  low = other.low;
51  return *this;
52  }

References EIGEN_STATIC_ASSERT, Eigen::internal::TensorUInt128< HIGH, LOW >::high, and Eigen::internal::TensorUInt128< HIGH, LOW >::low.

◆ upper()

template<typename HIGH = uint64_t, typename LOW = uint64_t>
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE HIGH Eigen::internal::TensorUInt128< HIGH, LOW >::upper ( ) const
inline

Member Data Documentation

◆ high

◆ low


The documentation for this struct was generated from the following file: