Eigen::NumTraits< Eigen::half > Struct Reference
+ Inheritance diagram for Eigen::NumTraits< Eigen::half >:

Public Types

enum  {
  IsSigned ,
  IsInteger ,
  IsComplex ,
  RequireInitialization
}
 
- Public Types inherited from Eigen::GenericNumTraits< Eigen::half >
enum  
 
typedef Eigen::half Real
 

Static Public Member Functions

static EIGEN_CONSTEXPR Eigen::half dummy_precision ()
 
static EIGEN_CONSTEXPR Eigen::half epsilon ()
 
static EIGEN_CONSTEXPR Eigen::half highest ()
 
static EIGEN_CONSTEXPR Eigen::half infinity ()
 
static EIGEN_CONSTEXPR Eigen::half lowest ()
 
static EIGEN_CONSTEXPR Eigen::half quiet_NaN ()
 

Detailed Description

Definition at line 866 of file Half.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
IsSigned 
IsInteger 
IsComplex 
RequireInitialization 

Definition at line 869 of file Half.h.

869  {
870  IsSigned = true,
871  IsInteger = false,
872  IsComplex = false,
873  RequireInitialization = false
874  };

Member Function Documentation

◆ dummy_precision()

static EIGEN_CONSTEXPR Eigen::half Eigen::NumTraits< Eigen::half >::dummy_precision ( )
inlinestatic

Definition at line 879 of file Half.h.

879  {
880  return half_impl::raw_uint16_to_half(0x211f); // Eigen::half(1e-2f);
881  }
EIGEN_CONSTEXPR __half_raw raw_uint16_to_half(numext::uint16_t x)
Definition: Half.h:551

◆ epsilon()

static EIGEN_CONSTEXPR Eigen::half Eigen::NumTraits< Eigen::half >::epsilon ( )
inlinestatic

Definition at line 876 of file Half.h.

876  {
877  return half_impl::raw_uint16_to_half(0x0800);
878  }

◆ highest()

static EIGEN_CONSTEXPR Eigen::half Eigen::NumTraits< Eigen::half >::highest ( )
inlinestatic

Definition at line 882 of file Half.h.

882  {
883  return half_impl::raw_uint16_to_half(0x7bff);
884  }

◆ infinity()

static EIGEN_CONSTEXPR Eigen::half Eigen::NumTraits< Eigen::half >::infinity ( )
inlinestatic

Definition at line 888 of file Half.h.

888  {
889  return half_impl::raw_uint16_to_half(0x7c00);
890  }

◆ lowest()

static EIGEN_CONSTEXPR Eigen::half Eigen::NumTraits< Eigen::half >::lowest ( )
inlinestatic

Definition at line 885 of file Half.h.

885  {
886  return half_impl::raw_uint16_to_half(0xfbff);
887  }

◆ quiet_NaN()

static EIGEN_CONSTEXPR Eigen::half Eigen::NumTraits< Eigen::half >::quiet_NaN ( )
inlinestatic

Definition at line 891 of file Half.h.

891  {
892  return half_impl::raw_uint16_to_half(0x7e00);
893  }

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