Crates.io | sz3 |
lib.rs | sz3 |
version | 0.2.0+SZ3-3.2.1 |
source | src |
created_at | 2024-05-22 12:36:12.135346 |
updated_at | 2024-12-09 16:15:37.248434 |
description | High level bindings to the SZ3 lossy floating point compressor. |
homepage | |
repository | https://github.com/apertus-open-source-cinema/sz3-rs/ |
max_upload_size | |
id | 1247889 |
size | 34,128 |
High level bindings to the SZ3 lossy floating point compressor.
let data = vec![0; 64 * 64 * 64];
let data = DimensionedData::build(&data)
.dim(64)?
.dim(64)?
.remainder_dim()?;
let config = Config::new(ErrorBound::Absolute(0.02));
let compressed = compress_with_config(&data, &config);
let decompressed = decompress::<f32, _>(&*compressed);