Function numcodecs_linear_quantize::reconstruct
source · pub fn reconstruct<T: Float, Q: Unsigned>(
encoded: &[Q],
floatify: impl Fn(Q) -> T,
) -> Result<ArrayD<T>, LinearQuantizeCodecError>Expand description
Reconstruct the linear-quantized encoded array using the floatify
closure.
§Errors
Errors with
LinearQuantizeCodecError::HeaderDecodeFailedif decoding the header failed