Class Reference for E1039 Core & Analysis Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
half Class Reference

#include </dev/shm/kenichi/update-github-e1039-doc/e1039-core/packages/Half/half.h>

Classes

union  uif
 

Public Member Functions

 half ()
 
 half (float f)
 
 operator float () const
 
half operator- () const
 
halfoperator= (half h)
 
halfoperator= (float f)
 
halfoperator+= (half h)
 
halfoperator+= (float f)
 
halfoperator-= (half h)
 
halfoperator-= (float f)
 
halfoperator*= (half h)
 
halfoperator*= (float f)
 
halfoperator/= (half h)
 
halfoperator/= (float f)
 
half round (unsigned int n) const
 
bool isFinite () const
 
bool isNormalized () const
 
bool isDenormalized () const
 
bool isZero () const
 
bool isNan () const
 
bool isInfinity () const
 
bool isNegative () const
 
unsigned short bits () const
 
void setBits (unsigned short bits)
 

Static Public Member Functions

static half posInf ()
 
static half negInf ()
 
static half qNan ()
 
static half sNan ()
 

Detailed Description

Definition at line 102 of file half.h.

Constructor & Destructor Documentation

◆ half() [1/2]

half::half ( )
inline

Definition at line 427 of file half.h.

Referenced by operator*=(), operator+=(), operator-=(), operator/=(), and operator=().

+ Here is the caller graph for this function:

◆ half() [2/2]

half::half ( float  f)
inline

Definition at line 438 of file half.h.

References half::uif::f, and half::uif::i.

Member Function Documentation

◆ bits()

unsigned short half::bits ( ) const
inline

Definition at line 754 of file half.h.

Referenced by HepMCCompress::FloatToInt(), VariableArrayUtils::FloatToShortBits(), halfFunction< T >::operator()(), and setBits().

+ Here is the caller graph for this function:

◆ isDenormalized()

bool half::isDenormalized ( ) const
inline

Definition at line 677 of file half.h.

◆ isFinite()

bool half::isFinite ( ) const
inline

Definition at line 661 of file half.h.

◆ isInfinity()

bool half::isInfinity ( ) const
inline

Definition at line 702 of file half.h.

Referenced by halfFunction< T >::halfFunction().

+ Here is the caller graph for this function:

◆ isNan()

bool half::isNan ( ) const
inline

Definition at line 693 of file half.h.

Referenced by halfFunction< T >::halfFunction().

+ Here is the caller graph for this function:

◆ isNegative()

bool half::isNegative ( ) const
inline

Definition at line 711 of file half.h.

Referenced by halfFunction< T >::halfFunction().

+ Here is the caller graph for this function:

◆ isNormalized()

bool half::isNormalized ( ) const
inline

Definition at line 669 of file half.h.

◆ isZero()

bool half::isZero ( ) const
inline

Definition at line 686 of file half.h.

◆ negInf()

half half::negInf ( )
inlinestatic

Definition at line 727 of file half.h.

◆ operator float()

half::operator float ( ) const
inline

Definition at line 502 of file half.h.

◆ operator*=() [1/2]

half & half::operator*= ( float  f)
inline

Definition at line 637 of file half.h.

References half().

+ Here is the call graph for this function:

◆ operator*=() [2/2]

half & half::operator*= ( half  h)
inline

Definition at line 629 of file half.h.

References half().

+ Here is the call graph for this function:

◆ operator+=() [1/2]

half & half::operator+= ( float  f)
inline

Definition at line 605 of file half.h.

References half().

+ Here is the call graph for this function:

◆ operator+=() [2/2]

half & half::operator+= ( half  h)
inline

Definition at line 597 of file half.h.

References half().

+ Here is the call graph for this function:

◆ operator-()

half half::operator- ( ) const
inline

Definition at line 572 of file half.h.

◆ operator-=() [1/2]

half & half::operator-= ( float  f)
inline

Definition at line 621 of file half.h.

References half().

+ Here is the call graph for this function:

◆ operator-=() [2/2]

half & half::operator-= ( half  h)
inline

Definition at line 613 of file half.h.

References half().

+ Here is the call graph for this function:

◆ operator/=() [1/2]

half & half::operator/= ( float  f)
inline

Definition at line 653 of file half.h.

References half().

+ Here is the call graph for this function:

◆ operator/=() [2/2]

half & half::operator/= ( half  h)
inline

Definition at line 645 of file half.h.

References half().

+ Here is the call graph for this function:

◆ operator=() [1/2]

half & half::operator= ( float  f)
inline

Definition at line 589 of file half.h.

References half().

+ Here is the call graph for this function:

◆ operator=() [2/2]

half & half::operator= ( half  h)
inline

Definition at line 581 of file half.h.

◆ posInf()

half half::posInf ( )
inlinestatic

Definition at line 718 of file half.h.

Referenced by std::numeric_limits< half >::infinity().

+ Here is the caller graph for this function:

◆ qNan()

half half::qNan ( )
inlinestatic

Definition at line 736 of file half.h.

Referenced by std::numeric_limits< half >::quiet_NaN().

+ Here is the caller graph for this function:

◆ round()

half half::round ( unsigned int  n) const
inline

Definition at line 513 of file half.h.

◆ setBits()

void half::setBits ( unsigned short  bits)
inline

Definition at line 761 of file half.h.

References bits().

Referenced by halfFunction< T >::halfFunction(), and VariableArrayUtils::ShortBitsToFloat().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sNan()

half half::sNan ( )
inlinestatic

Definition at line 745 of file half.h.

Referenced by std::numeric_limits< half >::signaling_NaN().

+ Here is the caller graph for this function:

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