pub fn reconstruct<T: Float + DeserializeOwned, 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::HeaderDecodeFailed
if decoding the header failed