Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
half Class Reference

#include <coresoftware/blob/master/offline/packages/Half/half.h>

+ Collaboration diagram for half:

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 ()
 

Static Private Member Functions

static short convert (int i)
 
static float overflow ()
 

Private Attributes

unsigned short _h
 

Static Private Attributes

static HALF_EXPORT_CONST uif _toFloat [1<< 16]
 
static HALF_EXPORT_CONST
unsigned short 
_eLut [1<< 9]
 

Detailed Description

Definition at line 102 of file half.h.

View newest version in sPHENIX GitHub at line 102 of file half.h

Constructor & Destructor Documentation

half::half ( )
inline

Definition at line 427 of file half.h.

View newest version in sPHENIX GitHub at line 427 of file half.h

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

+ Here is the caller graph for this function:

half::half ( float  f)
inline

Definition at line 438 of file half.h.

View newest version in sPHENIX GitHub at line 438 of file half.h

References _eLut, _h, convert(), Acts::UnitConstants::e, f, half::uif::f, half::uif::i, Acts::UnitConstants::m, and ambiguity_solver_full_chain::x.

+ Here is the call graph for this function:

Member Function Documentation

unsigned short half::bits ( ) const
inline

Definition at line 754 of file half.h.

View newest version in sPHENIX GitHub at line 754 of file half.h

References _h.

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

+ Here is the caller graph for this function:

static short half::convert ( int  i)
staticprivate

Referenced by half().

+ Here is the caller graph for this function:

bool half::isDenormalized ( ) const
inline

Definition at line 677 of file half.h.

View newest version in sPHENIX GitHub at line 677 of file half.h

References _h, Acts::UnitConstants::e, and Acts::UnitConstants::m.

bool half::isFinite ( ) const
inline

Definition at line 661 of file half.h.

View newest version in sPHENIX GitHub at line 661 of file half.h

References _h, and Acts::UnitConstants::e.

bool half::isInfinity ( ) const
inline

Definition at line 702 of file half.h.

View newest version in sPHENIX GitHub at line 702 of file half.h

References _h, Acts::UnitConstants::e, and Acts::UnitConstants::m.

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

+ Here is the caller graph for this function:

bool half::isNan ( ) const
inline

Definition at line 693 of file half.h.

View newest version in sPHENIX GitHub at line 693 of file half.h

References _h, Acts::UnitConstants::e, and Acts::UnitConstants::m.

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

+ Here is the caller graph for this function:

bool half::isNegative ( ) const
inline

Definition at line 711 of file half.h.

View newest version in sPHENIX GitHub at line 711 of file half.h

References _h.

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

+ Here is the caller graph for this function:

bool half::isNormalized ( ) const
inline

Definition at line 669 of file half.h.

View newest version in sPHENIX GitHub at line 669 of file half.h

References _h, and Acts::UnitConstants::e.

bool half::isZero ( ) const
inline

Definition at line 686 of file half.h.

View newest version in sPHENIX GitHub at line 686 of file half.h

References _h.

half half::negInf ( )
inlinestatic

Definition at line 727 of file half.h.

View newest version in sPHENIX GitHub at line 727 of file half.h

References _h, and h.

half::operator float ( ) const
inline

Definition at line 502 of file half.h.

View newest version in sPHENIX GitHub at line 502 of file half.h

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

Definition at line 629 of file half.h.

View newest version in sPHENIX GitHub at line 629 of file half.h

References half().

+ Here is the call graph for this function:

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

Definition at line 637 of file half.h.

View newest version in sPHENIX GitHub at line 637 of file half.h

References half().

+ Here is the call graph for this function:

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

Definition at line 597 of file half.h.

View newest version in sPHENIX GitHub at line 597 of file half.h

References half().

+ Here is the call graph for this function:

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

Definition at line 605 of file half.h.

View newest version in sPHENIX GitHub at line 605 of file half.h

References half().

+ Here is the call graph for this function:

half half::operator- ( ) const
inline

Definition at line 572 of file half.h.

View newest version in sPHENIX GitHub at line 572 of file half.h

References _h, and h.

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

Definition at line 613 of file half.h.

View newest version in sPHENIX GitHub at line 613 of file half.h

References half().

+ Here is the call graph for this function:

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

Definition at line 621 of file half.h.

View newest version in sPHENIX GitHub at line 621 of file half.h

References half().

+ Here is the call graph for this function:

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

Definition at line 645 of file half.h.

View newest version in sPHENIX GitHub at line 645 of file half.h

References half().

+ Here is the call graph for this function:

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

Definition at line 653 of file half.h.

View newest version in sPHENIX GitHub at line 653 of file half.h

References half().

+ Here is the call graph for this function:

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

Definition at line 581 of file half.h.

View newest version in sPHENIX GitHub at line 581 of file half.h

References _h.

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

Definition at line 589 of file half.h.

View newest version in sPHENIX GitHub at line 589 of file half.h

References half().

+ Here is the call graph for this function:

static float half::overflow ( )
staticprivate
half half::posInf ( )
inlinestatic

Definition at line 718 of file half.h.

View newest version in sPHENIX GitHub at line 718 of file half.h

References _h, and h.

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

+ Here is the caller graph for this function:

half half::qNan ( )
inlinestatic

Definition at line 736 of file half.h.

View newest version in sPHENIX GitHub at line 736 of file half.h

References _h, and h.

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

+ Here is the caller graph for this function:

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

Definition at line 513 of file half.h.

View newest version in sPHENIX GitHub at line 513 of file half.h

References _h, Acts::UnitConstants::e, h, n, and physmon_simulation::s.

void half::setBits ( unsigned short  bits)
inline

Definition at line 761 of file half.h.

View newest version in sPHENIX GitHub at line 761 of file half.h

References _h, and 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:

half half::sNan ( )
inlinestatic

Definition at line 745 of file half.h.

View newest version in sPHENIX GitHub at line 745 of file half.h

References _h, and h.

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

+ Here is the caller graph for this function:

Member Data Documentation

HALF_EXPORT_CONST unsigned short half::_eLut[1<< 9]
staticprivate

Definition at line 231 of file half.h.

View newest version in sPHENIX GitHub at line 231 of file half.h

Referenced by half().

unsigned short half::_h
private

Definition at line 228 of file half.h.

View newest version in sPHENIX GitHub at line 228 of file half.h

Referenced by bits(), half(), isDenormalized(), isFinite(), isInfinity(), isNan(), isNegative(), isNormalized(), isZero(), negInf(), operator-(), operator=(), posInf(), qNan(), round(), setBits(), and sNan().

HALF_EXPORT_CONST uif half::_toFloat[1<< 16]
staticprivate

Definition at line 230 of file half.h.

View newest version in sPHENIX GitHub at line 230 of file half.h


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