include/ck/utility/mxf6_utils.hpp Source File#
mxf6_utils.hpp
Go to the documentation of this file.
Definition: check_err.hpp:24
__host__ __device__ bool is_inf< bf6_t >(e8m0_bexp_t const scale[[maybe_unused]], bf6_t const data[[maybe_unused]])
Checks if an bf6_t value is infinite.
Definition: mxf6_utils.hpp:74
__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:266
__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:116
__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:301
__host__ __device__ f6_t sat_convert_to_type< f6_t >(float value)
Converts a float to f6_t with saturation.
Definition: mxf6_utils.hpp:190
__host__ __device__ bf6_t sat_convert_to_type< bf6_t >(float value)
Converts a float to bf6_t with saturation.
Definition: mxf6_utils.hpp:228
__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:164
__host__ __device__ bool is_nan< bf6_t >(e8m0_bexp_t const scale, bf6_t const dataBytes[[maybe_unused]])
Checks if an bf6_t value is NaN based on the provided scale.
Definition: mxf6_utils.hpp:40
__host__ __device__ int get_exponent_value< e8m0_bexp_t >(e8m0_bexp_t x)
Definition: e8m0.hpp:73
__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:138
__host__ __device__ bool is_inf< f6_t >(e8m0_bexp_t const scale[[maybe_unused]], f6_t const data[[maybe_unused]])
Checks if an f6_t value is infinite.
Definition: mxf6_utils.hpp:57
__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:93
__host__ __device__ bool is_nan< f6_t >(e8m0_bexp_t const scale, f6_t const dataBytes[[maybe_unused]])
Checks if an f6_t value is NaN based on the provided scale.
Definition: mxf6_utils.hpp:22
Definition: data_type.hpp:2831
Definition: data_type.hpp:3078
Unsigned representation of a conventional biased Float32 exponent.
Definition: e8m0.hpp:25
Definition: mxfp_utils.hpp:9