Base.bitstring
— MethodLike bitstring(x) but with bitstring(x,:split) showing the bits split into sign, exponent and mantissa bits.
StochasticRounding.__init__
— MethodReseed the PRNG randomly by recalling.
StochasticRounding.rand_subnormal
— Methodrand_subnormal(rbits::UInt32) -> Float32
Create a random perturbation for the Float16 subnormals for stochastic rounding of Float32 -> Float16. This function samples uniformly from [-2.980232f-8,2.9802319f-8]. = [-u/2,u/2]. This function is algorithmically similar to randfloat from RandomNumbers.jl
StochasticRounding.rand_subnormal
— Methodrand_subnormal(rbits::UInt64) -> Float64
Create a random perturbation for the Float16 subnormals for stochastic rounding of Float32 -> Float16. This function samples uniformly from [-7.0064923216240846e-46,7.006492321624084e-46]. This function is algorithmically similar to randfloat from RandomNumbers.jl
StochasticRounding.seed
— MethodSeed the PRNG with any integer >0.
StochasticRounding.stochastic_round
— MethodStochastically round x::Float32 to BFloat16 with distance-proportional probabilities.
StochasticRounding.stochastic_round
— MethodStochastically round x::Float32 to Float16 with distance-proportional probabilities.
StochasticRounding.stochastic_round
— MethodStochastically round x::Float64 to Float32 with distance-proportional probabilities.
StochasticRounding.stochastic_round
— MethodStochastically round x::Double64 to Float64 with distance-proportional probabilities.