Crates.io | sz3 |
lib.rs | sz3 |
version | 0.1.1+SZ3-3.1.8.1 |
source | src |
created_at | 2024-05-22 12:36:12.135346 |
updated_at | 2024-05-28 14:47:21.671033 |
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,241 |
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);