pub fn compress<T: TthreshElement, S: Data<Elem = T>, D: Dimension>(
data: ArrayBase<S, D>,
error_bound: &TthreshErrorBound,
) -> Result<Vec<u8>, TthreshCodecError>
Expand description
Compresses the input data
array using tthresh with the provided
error_bound
.
ยงErrors
Errors with
TthreshCodecError::TthreshEncodeFailed
if encoding failed with an opaque error