15.10.__nv_fp4x2_e2m1
- struct__nv_fp4x2_e2m1
__nv_fp4x2_e2m1 datatype
This structure implements the datatype for handling two
fp4floating-point numbers ofe2m1kind each.The structure implements converting constructors and operators.
Public Functions
- __host____device__inline__nv_fp4x2_e2m1()
Constructor by default.
- __host____device__inlineexplicit__nv_fp4x2_e2m1(const__half2f)
Constructor from
__half2data type, relies on__NV_SATFINITEbehavior for out-of-range values.
- __host____device__inlineexplicit__nv_fp4x2_e2m1(const__nv_bfloat162f)
Constructor from
__nv_bfloat162data type, relies on__NV_SATFINITEbehavior for out-of-range values.
- __host____device__inlineexplicit__nv_fp4x2_e2m1(constdouble2f)
Constructor from
double2data type, relies on__NV_SATFINITEbehavior for out-of-range values.
- __host____device__inlineexplicit__nv_fp4x2_e2m1(constfloat2f)
Constructor from
float2data type, relies on__NV_SATFINITEbehavior for out-of-range values.
Public Members
- __nv_fp4x2_storage_t__x
Storage variable contains the vector of two
fp4floating-point data values.
- __host____device__inline__nv_fp4x2_e2m1()