Data Structures | Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends
ngraph::float16 Class Reference

Public Member Functions

 float16 (uint32_t sign, uint32_t biased_exponent, uint32_t fraction)
 
 float16 (float value)
 
std::string to_string () const
 
size_t size () const
 
template<typename T >
bool operator== (const T &other) const
 
template<typename T >
bool operator!= (const T &other) const
 
template<typename T >
bool operator< (const T &other) const
 
template<typename T >
bool operator<= (const T &other) const
 
template<typename T >
bool operator> (const T &other) const
 
template<typename T >
bool operator>= (const T &other) const
 
template<typename T >
float16 operator+ (const T &other) const
 
template<typename T >
float16 operator+= (const T &other)
 
template<typename T >
float16 operator- (const T &other) const
 
template<typename T >
float16 operator-= (const T &other)
 
template<typename T >
float16 operator* (const T &other) const
 
template<typename T >
float16 operator*= (const T &other)
 
template<typename T >
float16 operator/ (const T &other) const
 
template<typename T >
float16 operator/= (const T &other)
 
 operator float () const
 
uint16_t to_bits () const
 

Static Public Member Functions

static constexpr float16 from_bits (uint16_t bits)
 

Static Public Attributes

static constexpr uint32_t frac_size = 10
 
static constexpr uint32_t exp_size = 5
 
static constexpr uint32_t exp_bias = 15
 

Friends

std::ostream & operator<< (std::ostream &out, const float16 &obj)
 

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