pub fn reconstruct_into<T: Float + DeserializeOwned, Q: Unsigned>(
encoded: &[Q],
decoded: ArrayViewMutD<'_, T>,
floatify: impl Fn(Q) -> T,
) -> Result<(), LinearQuantizeCodecError>Expand description
Reconstruct the linear-quantized encoded array using the floatify
closure into the decoded array.
ยงErrors
Errors with
LinearQuantizeCodecError::HeaderDecodeFailedif decoding the header failedLinearQuantizeCodecError::MismatchedDecodeIntoShapeif thedecodedarray is of the wrong shape