pub fn compress<T: Sz3Element, S: Data<Elem = T>, D: Dimension>(
data: ArrayBase<S, D>,
predictor: Option<&Sz3Predictor>,
error_bound: &Sz3ErrorBound,
) -> Result<Vec<u8>, Sz3CodecError>Expand description
Compresses the input data array using SZ3, which consists of an optional
predictor, an error_bound, an optional encoder, and an optional
lossless compressor.
ยงErrors
Errors with
Sz3CodecError::HeaderEncodeFailedif encoding the header failedSz3CodecError::InvalidEncodeShapeif the array shape is invalidSz3CodecError::Sz3EncodeFailedif encoding failed with an opaque error