DPC++ Runtime
Runtime libraries for oneAPI DPC++
sycl::_V1::ext::oneapi::bfloat16 Class Reference

#include <sycl/ext/oneapi/bfloat16.hpp>

Collaboration diagram for sycl::_V1::ext::oneapi::bfloat16:

Public Member Functions

 bfloat16 ()=default
 
constexpr bfloat16 (const bfloat16 &)=default
 
constexpr bfloat16 (bfloat16 &&)=default
 
constexpr bfloat16operator= (const bfloat16 &rhs)=default
 
 ~bfloat16 ()=default
 
 bfloat16 (const float &a)
 
bfloat16operator= (const float &rhs)
 
 bfloat16 (const sycl::half &a)
 
bfloat16operator= (const sycl::half &rhs)
 
 operator float () const
 
 operator sycl::half () const
 
 operator bool ()
 

Protected Attributes

detail::Bfloat16StorageT value
 

Friends

class detail::ConvertToBfloat16
 
class sycl::vec< bfloat16, 1 >
 
class sycl::vec< bfloat16, 2 >
 
class sycl::vec< bfloat16, 3 >
 
class sycl::vec< bfloat16, 4 >
 
class sycl::vec< bfloat16, 8 >
 
class sycl::vec< bfloat16, 16 >
 
detail::Bfloat16StorageT detail::bfloat16ToBits (const bfloat16 &Value)
 
bfloat16 detail::bitsToBfloat16 (const detail::Bfloat16StorageT Value)
 
bfloat16 operator- (bfloat16 &lhs)
 
std::ostream & operator<< (std::ostream &O, bfloat16 const &rhs)
 
std::istream & operator>> (std::istream &I, bfloat16 &rhs)
 

Detailed Description

Definition at line 102 of file bfloat16.hpp.

Constructor & Destructor Documentation

◆ bfloat16() [1/5]

sycl::_V1::ext::oneapi::bfloat16::bfloat16 ( )
default

◆ bfloat16() [2/5]

constexpr sycl::_V1::ext::oneapi::bfloat16::bfloat16 ( const bfloat16 )
constexprdefault

◆ bfloat16() [3/5]

constexpr sycl::_V1::ext::oneapi::bfloat16::bfloat16 ( bfloat16 &&  )
constexprdefault

◆ ~bfloat16()

sycl::_V1::ext::oneapi::bfloat16::~bfloat16 ( )
default

◆ bfloat16() [4/5]

sycl::_V1::ext::oneapi::bfloat16::bfloat16 ( const float &  a)
inline

Definition at line 179 of file bfloat16.hpp.

References value.

◆ bfloat16() [5/5]

sycl::_V1::ext::oneapi::bfloat16::bfloat16 ( const sycl::half a)
inline

Definition at line 187 of file bfloat16.hpp.

References value.

Member Function Documentation

◆ operator bool()

sycl::_V1::ext::oneapi::bfloat16::operator bool ( )
inlineexplicit

Definition at line 201 of file bfloat16.hpp.

References value.

◆ operator float()

sycl::_V1::ext::oneapi::bfloat16::operator float ( ) const
inline

Definition at line 195 of file bfloat16.hpp.

References value.

◆ operator sycl::half()

sycl::_V1::ext::oneapi::bfloat16::operator sycl::half ( ) const
inline

Definition at line 198 of file bfloat16.hpp.

References value.

◆ operator=() [1/3]

constexpr bfloat16& sycl::_V1::ext::oneapi::bfloat16::operator= ( const bfloat16 rhs)
constexprdefault

◆ operator=() [2/3]

bfloat16& sycl::_V1::ext::oneapi::bfloat16::operator= ( const float &  rhs)
inline

Definition at line 181 of file bfloat16.hpp.

References value.

◆ operator=() [3/3]

bfloat16& sycl::_V1::ext::oneapi::bfloat16::operator= ( const sycl::half rhs)
inline

Definition at line 189 of file bfloat16.hpp.

References value.

Friends And Related Function Documentation

◆ detail::bfloat16ToBits

◆ detail::bitsToBfloat16

◆ detail::ConvertToBfloat16

friend class detail::ConvertToBfloat16
friend

Definition at line 110 of file bfloat16.hpp.

◆ operator-

bfloat16 operator- ( bfloat16 lhs)
friend

Definition at line 204 of file bfloat16.hpp.

◆ operator<<

std::ostream& operator<< ( std::ostream &  O,
bfloat16 const &  rhs 
)
friend

Definition at line 277 of file bfloat16.hpp.

◆ operator>>

std::istream& operator>> ( std::istream &  I,
bfloat16 rhs 
)
friend

Definition at line 282 of file bfloat16.hpp.

◆ sycl::vec< bfloat16, 1 >

friend class sycl::vec< bfloat16, 1 >
friend

Definition at line 156 of file bfloat16.hpp.

◆ sycl::vec< bfloat16, 16 >

friend class sycl::vec< bfloat16, 16 >
friend

Definition at line 156 of file bfloat16.hpp.

◆ sycl::vec< bfloat16, 2 >

friend class sycl::vec< bfloat16, 2 >
friend

Definition at line 156 of file bfloat16.hpp.

◆ sycl::vec< bfloat16, 3 >

friend class sycl::vec< bfloat16, 3 >
friend

Definition at line 156 of file bfloat16.hpp.

◆ sycl::vec< bfloat16, 4 >

friend class sycl::vec< bfloat16, 4 >
friend

Definition at line 156 of file bfloat16.hpp.

◆ sycl::vec< bfloat16, 8 >

friend class sycl::vec< bfloat16, 8 >
friend

Definition at line 156 of file bfloat16.hpp.

Member Data Documentation

◆ value


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