pub fn compress<T: Sz3Element, S: Data<Elem = T>, D: Dimension>(
data: ArrayBase<S, D>,
bound: &Sz3ErrorBound,
) -> Result<Vec<u8>, Sz3CodecError>
Expand description
Compresses the input data
array using SZ3 with the provided error bound
configuration.
ยงErrors
Errors with
Sz3CodecError::HeaderEncodeFailed
if encoding the header failedSz3CodecError::InvalidEncodeShape
if the array shape is invalidSz3CodecError::Sz3EncodeFailed
if encoding failed with an opaque error