|
pRC
multi-purpose Tensor Train library for C++
|
Custom Type representing a half-precision floating point number. More...
#include <bfloat16.hpp>
Public Member Functions | |
| ~BFloat16 ()=default | |
| constexpr | BFloat16 (BFloat16 const &)=default |
| constexpr | BFloat16 (BFloat16 &&)=default |
| constexpr BFloat16 & | operator= (BFloat16 const &) &=default |
| constexpr BFloat16 & | operator= (BFloat16 &&) &=default |
| constexpr | BFloat16 ()=default |
| BFloat16 (Float32 const single) | |
| operator Float32 () const | |
| constexpr auto | isNaN () const |
| template<class X , If< IsInvocable< Add, BFloat16 &, X > > = 0> | |
| constexpr auto & | operator+= (X &&rhs) & |
| template<class X , If< IsInvocable< Sub, BFloat16 &, X > > = 0> | |
| constexpr auto & | operator-= (X &&rhs) & |
| template<class X , If< IsInvocable< Mul, BFloat16 &, X > > = 0> | |
| constexpr auto & | operator*= (X &&rhs) & |
| template<class X , If< IsInvocable< Div, BFloat16 &, X > > = 0> | |
| constexpr auto & | operator/= (X &&rhs) & |
| constexpr auto | operator== (BFloat16 const rhs) |
| constexpr auto | operator!= (BFloat16 const rhs) |
| auto | operator+ () const |
| constexpr auto | operator- () const |
Static Public Member Functions | |
| static constexpr auto | FromRepresentation (Representation const rep) |
Custom Type representing a half-precision floating point number.
Internal type used for calculations involving half-precision floating point numbers. For calculations, use the Float<16> type, which internally uses BFloat16. Be aware that BFloat16 does not support all operations, and might be implicitly converted to Float<32> (e.g. for addition).
|
default |
|
constexprdefault |
|
inline |
|
inlinestaticconstexpr |
|
inline |
|
inline |