mxf6_utils.hpp Source File#
mxf6_utils.hpp
Go to the documentation of this file.
Definition library/utility/check_err.hpp:24
__host__ __device__ f6_t sat_convert_to_type_sr< f6_t >(float value, uint32_t seed)
Converts a float to f6_t with saturation and stochastic rounding.
Definition mxf6_utils.hpp:267
__host__ __device__ bool is_zero< bf6_t >(e8m0_bexp_t const scale, bf6_t const data)
Checks whether an bf6_t value is zero.
Definition mxf6_utils.hpp:117
__host__ __device__ bf6_t sat_convert_to_type_sr< bf6_t >(float value, uint32_t seed)
Converts a float to f6_t with saturation and stochastic rounding.
Definition mxf6_utils.hpp:302
__host__ __device__ f6_t sat_convert_to_type< f6_t >(float value)
Converts a float to f6_t with saturation.
Definition mxf6_utils.hpp:191
__host__ __device__ float convert_to_float(T data, int scale_exp)
Definition mxfp_utils.hpp:73
__host__ __device__ T convert_to_type_sr(float value, uint32_t seed)
Definition mxfp_utils.hpp:261
__host__ __device__ bf6_t sat_convert_to_type< bf6_t >(float value)
Converts a float to bf6_t with saturation.
Definition mxf6_utils.hpp:229
__host__ __device__ bool is_nan< f6_t >(e8m0_bexp_t const scale, f6_t const dataBytes)
Checks if an f6_t value is NaN based on the provided scale.
Definition mxf6_utils.hpp:23
__host__ __device__ float to_float< bf6_t >(e8m0_bexp_t const scale, bf6_t const data)
Converts an bf6_t value to a float based on an e8m0_bexp_t scale factor.
Definition mxf6_utils.hpp:165
__host__ __device__ bool is_inf< f6_t >(e8m0_bexp_t const scale, f6_t const data)
Checks if an f6_t value is infinite.
Definition mxf6_utils.hpp:58
__host__ __device__ bool is_zero(e8m0_bexp_t const scale, T const data)
__host__ __device__ T convert_to_type(float value)
Definition mxfp_utils.hpp:102
__host__ __device__ bool is_inf< bf6_t >(e8m0_bexp_t const scale, bf6_t const data)
Checks if an bf6_t value is infinite.
Definition mxf6_utils.hpp:75
__host__ __device__ bool is_nan(e8m0_bexp_t const scale, T const data)
__host__ __device__ bool is_nan< bf6_t >(e8m0_bexp_t const scale, bf6_t const dataBytes)
Checks if an bf6_t value is NaN based on the provided scale.
Definition mxf6_utils.hpp:41
__host__ __device__ float to_float< f6_t >(e8m0_bexp_t const scale, f6_t const data)
Converts an f6_t value to a float based on an e8m0_bexp_t scale factor.
Definition mxf6_utils.hpp:139
__host__ __device__ float to_float(e8m0_bexp_t const scale, T const data)
__host__ __device__ constexpr int32_t get_exponent_value< e8m0_bexp_t >(e8m0_bexp_t x)
Definition utility/e8m0.hpp:74
__host__ __device__ bool is_zero< f6_t >(e8m0_bexp_t const scale, f6_t const data)
Checks whether an f6_t value is zero.
Definition mxf6_utils.hpp:94
Definition numeric_limits.hpp:309
__host__ static __device__ constexpr T QuietNaN()
Definition numeric_limits.hpp:313
Definition numeric_utils.hpp:10
Unsigned representation of a conventional biased Float32 exponent.
Definition utility/e8m0.hpp:26
__host__ __device__ constexpr bool is_nan() const
Definition utility/e8m0.hpp:65
Definition mxfp_utils.hpp:14