pub fn compress<T: Element>(
data: &[T],
shape: &[usize],
target: ErrorBound,
verbose: bool,
debug: bool,
) -> Result<Vec<u8>, Error>Expand description
Compress the data buffer using the target error bound.
§Errors
Errors with
Error::InsufficientDimensionalityif thedata’sshapeis not at least three-dimensionalError::InvalidShapeif theshapedoes not match thedatalengthError::ExcessiveSizeif the shape cannot be converted intou32sError::NegativeErrorBoundif thetargeterror bound is negative