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::HeaderDecodeFailed
if decoding the header failedLinearQuantizeCodecError::MismatchedDecodeIntoShape
if thedecoded
array is of the wrong shape