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

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

Public Member Functions

 bfloat16 ()=default
 
 bfloat16 (const bfloat16 &)=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 ()
 

Friends

detail::Bfloat16StorageT detail::bfloat16ToBits (const bfloat16 &Value)
 
bfloat16 detail::bitsToBfloat16 (const detail::Bfloat16StorageT Value)
 
bfloat16 operator- (bfloat16 &lhs)
 

Detailed Description

Definition at line 35 of file bfloat16.hpp.

Constructor & Destructor Documentation

◆ bfloat16() [1/4]

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

◆ bfloat16() [2/4]

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

◆ ~bfloat16()

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

◆ bfloat16() [3/4]

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

Definition at line 101 of file bfloat16.hpp.

◆ bfloat16() [4/4]

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

Definition at line 109 of file bfloat16.hpp.

Member Function Documentation

◆ operator bool()

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

Definition at line 123 of file bfloat16.hpp.

◆ operator float()

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

Definition at line 117 of file bfloat16.hpp.

◆ operator sycl::half()

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

Definition at line 120 of file bfloat16.hpp.

◆ operator=() [1/2]

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

Definition at line 103 of file bfloat16.hpp.

◆ operator=() [2/2]

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

Definition at line 111 of file bfloat16.hpp.

Friends And Related Function Documentation

◆ detail::bfloat16ToBits

◆ detail::bitsToBfloat16

◆ operator-

bfloat16 operator- ( bfloat16 lhs)
friend

Definition at line 126 of file bfloat16.hpp.


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