Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Eigen::half Struct Reference

#include <src/eigen/Eigen/src/Core/arch/CUDA/Half.h>

+ Inheritance diagram for Eigen::half:
+ Collaboration diagram for Eigen::half:

Public Types

typedef half_impl::__half_raw __half_raw
 

Public Member Functions

EIGEN_DEVICE_FUNC half ()
 
EIGEN_DEVICE_FUNC half (const __half_raw &h)
 
EIGEN_DEVICE_FUNC half (const half &h)
 
EIGEN_DEVICE_FUNC half (bool b)
 
template<class T >
EIGEN_DEVICE_FUNC half (const T &val)
 
EIGEN_DEVICE_FUNC half (float f)
 
EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST (bool) const
 
EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST (signed char) const
 
EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST (unsigned char) const
 
EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST (short) const
 
EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST (unsigned short) const
 
EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST (int) const
 
EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST (unsigned int) const
 
EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST (long) const
 
EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST (unsigned long) const
 
EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST (long long) const
 
EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST (unsigned long long) const
 
EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST (float) const
 
EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST (double) const
 
EIGEN_DEVICE_FUNC halfoperator= (const half &other)
 

Public Attributes

unsigned short x
 

Detailed Description

Member Typedef Documentation

◆ __half_raw

Constructor & Destructor Documentation

◆ half() [1/6]

EIGEN_DEVICE_FUNC Eigen::half::half ( )
inline
85{}

◆ half() [2/6]

EIGEN_DEVICE_FUNC Eigen::half::half ( const __half_raw h)
inline
87: half_impl::half_base(h) {}

◆ half() [3/6]

EIGEN_DEVICE_FUNC Eigen::half::half ( const half h)
inline
88: half_impl::half_base(h) {}

◆ half() [4/6]

EIGEN_DEVICE_FUNC Eigen::half::half ( bool  b)
inlineexplicit
94 : half_impl::half_base(half_impl::raw_uint16_to_half(b ? 0x3c00 : 0)) {}
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC __half_raw raw_uint16_to_half(unsigned short x)
Definition Half.h:333

◆ half() [5/6]

template<class T >
EIGEN_DEVICE_FUNC Eigen::half::half ( const T &  val)
inlineexplicit
97 : half_impl::half_base(half_impl::float_to_half_rtne(static_cast<float>(val))) {}
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC __half_raw float_to_half_rtne(float ff)
Definition Half.h:344

◆ half() [6/6]

EIGEN_DEVICE_FUNC Eigen::half::half ( float  f)
inlineexplicit
99 : half_impl::half_base(half_impl::float_to_half_rtne(f)) {}

Member Function Documentation

◆ EIGEN_EXPLICIT_CAST() [1/13]

EIGEN_DEVICE_FUNC Eigen::half::EIGEN_EXPLICIT_CAST ( bool  ) const
inline
101 {
102 // +0.0 and -0.0 become false, everything else becomes true.
103 return (x & 0x7fff) != 0;
104 }
unsigned short x
Definition Half.h:57

References Eigen::half_impl::__half_raw::x.

◆ EIGEN_EXPLICIT_CAST() [2/13]

EIGEN_DEVICE_FUNC Eigen::half::EIGEN_EXPLICIT_CAST ( double  ) const
inline
138 {
139 return static_cast<double>(half_impl::half_to_float(*this));
140 }
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC float half_to_float(__half_raw h)
Definition Half.h:400

References Eigen::half_impl::half_to_float().

+ Here is the call graph for this function:

◆ EIGEN_EXPLICIT_CAST() [3/13]

EIGEN_DEVICE_FUNC Eigen::half::EIGEN_EXPLICIT_CAST ( float  ) const
inline
135 {
136 return half_impl::half_to_float(*this);
137 }

References Eigen::half_impl::half_to_float().

+ Here is the call graph for this function:

◆ EIGEN_EXPLICIT_CAST() [4/13]

EIGEN_DEVICE_FUNC Eigen::half::EIGEN_EXPLICIT_CAST ( int  ) const
inline
117 {
118 return static_cast<int>(half_impl::half_to_float(*this));
119 }

References Eigen::half_impl::half_to_float().

+ Here is the call graph for this function:

◆ EIGEN_EXPLICIT_CAST() [5/13]

EIGEN_DEVICE_FUNC Eigen::half::EIGEN_EXPLICIT_CAST ( long long  ) const
inline
129 {
130 return static_cast<long long>(half_impl::half_to_float(*this));
131 }

References Eigen::half_impl::half_to_float().

+ Here is the call graph for this function:

◆ EIGEN_EXPLICIT_CAST() [6/13]

EIGEN_DEVICE_FUNC Eigen::half::EIGEN_EXPLICIT_CAST ( long  ) const
inline
123 {
124 return static_cast<long>(half_impl::half_to_float(*this));
125 }

References Eigen::half_impl::half_to_float().

+ Here is the call graph for this function:

◆ EIGEN_EXPLICIT_CAST() [7/13]

EIGEN_DEVICE_FUNC Eigen::half::EIGEN_EXPLICIT_CAST ( short  ) const
inline
111 {
112 return static_cast<short>(half_impl::half_to_float(*this));
113 }

References Eigen::half_impl::half_to_float().

+ Here is the call graph for this function:

◆ EIGEN_EXPLICIT_CAST() [8/13]

EIGEN_DEVICE_FUNC Eigen::half::EIGEN_EXPLICIT_CAST ( signed char  ) const
inline
105 {
106 return static_cast<signed char>(half_impl::half_to_float(*this));
107 }

References Eigen::half_impl::half_to_float().

+ Here is the call graph for this function:

◆ EIGEN_EXPLICIT_CAST() [9/13]

EIGEN_DEVICE_FUNC Eigen::half::EIGEN_EXPLICIT_CAST ( unsigned char  ) const
inline
108 {
109 return static_cast<unsigned char>(half_impl::half_to_float(*this));
110 }

References Eigen::half_impl::half_to_float().

+ Here is the call graph for this function:

◆ EIGEN_EXPLICIT_CAST() [10/13]

EIGEN_DEVICE_FUNC Eigen::half::EIGEN_EXPLICIT_CAST ( unsigned int  ) const
inline
120 {
121 return static_cast<unsigned int>(half_impl::half_to_float(*this));
122 }

References Eigen::half_impl::half_to_float().

+ Here is the call graph for this function:

◆ EIGEN_EXPLICIT_CAST() [11/13]

EIGEN_DEVICE_FUNC Eigen::half::EIGEN_EXPLICIT_CAST ( unsigned long long  ) const
inline
132 {
133 return static_cast<unsigned long long>(half_to_float(*this));
134 }

◆ EIGEN_EXPLICIT_CAST() [12/13]

EIGEN_DEVICE_FUNC Eigen::half::EIGEN_EXPLICIT_CAST ( unsigned long  ) const
inline
126 {
127 return static_cast<unsigned long>(half_impl::half_to_float(*this));
128 }

References Eigen::half_impl::half_to_float().

+ Here is the call graph for this function:

◆ EIGEN_EXPLICIT_CAST() [13/13]

EIGEN_DEVICE_FUNC Eigen::half::EIGEN_EXPLICIT_CAST ( unsigned short  ) const
inline
114 {
115 return static_cast<unsigned short>(half_impl::half_to_float(*this));
116 }

References Eigen::half_impl::half_to_float().

+ Here is the call graph for this function:

◆ operator=()

EIGEN_DEVICE_FUNC half & Eigen::half::operator= ( const half other)
inline
142 {
143 x = other.x;
144 return *this;
145 }

References Eigen::half_impl::__half_raw::x.

Member Data Documentation

◆ x


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