Crate numcodecs_stochastic_rounding

Source
Expand description

CI Status MSRV Latest Version Rust Doc Crate Rust Doc Main

Stochastic rounding codec implementation for the numcodecs API.

Structs§

NonNegative
Non-negative floating point number
StochasticRoundingCodec
Codec that stochastically rounds the data to the nearest multiple of precision on encoding and passes through the input unchanged during decoding.

Enums§

StochasticRoundingCodecError
Errors that may occur when applying the StochasticRoundingCodec.

Traits§

FloatExt
Floating point types

Functions§

stochastic_rounding
Stochastically rounds the data to the nearest multiple of the precision.