Registry / serialization / ndarray-npy

ndarray-npy

JSON →
library0.10.0rscratesunverified

Provides support for reading and writing .npy and .npz file formats for the ndarray crate.

# Cargo.toml [dependencies] ndarray-npy = "0.10.0"
INSTALL
IMPORT
SIG · NDARRAY-NPY
N
ndarray-npy
serializationrustv0.10.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

NpzWriter
use ndarray_npy::NpzWriter;

Write an ndarray to a .npz file.

use ndarray_npy::NpzWriter; use ndarray::array; fn main() { let arr = array![[1, 2], [3, 4]]; let mut writer = NpzWriter::new(std::fs::File::create("data.npz").unwrap()); writer.add_array("my_array", &arr).unwrap(); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.10.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
ndarray-npy — cargo add ndarray-npy · libregistry