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::InsufficientDimensionality
if thedata
’sshape
is not at least three-dimensionalError::InvalidShape
if theshape
does not match thedata
lengthError::ExcessiveSize
if the shape cannot be converted intou32
sError::NegativeErrorBound
if thetarget
error bound is negative