ferray-io
NumPy-compatible file I/O for the ferray scientific computing library.
What's in this crate
.npyread/write — single array serialization (all dtypes, C/Fortran order).npzread/write — compressed archives of named arrays- Memory mapping —
mmap_npyfor zero-copy access to large files - Text I/O —
loadtxt,savetxt,genfromtxt,fromregexwith delimiter/comment/skip support - Format helpers (
lib.format):descr_to_dtype,header_data_from_array_1_0,read_array,write_arrayfor low-level header / dtype manipulation DataSource— URL / compressed-file abstraction (handles.gz,.bz2, HTTP-fetched inputs transparently)- Structured dtype support for compound types
Usage
use ;
use *;
let a = linspace?;
save_npy?;
let b: = load_npy?;
This crate is re-exported through the main ferray crate with the io feature (enabled by default).
License
MIT OR Apache-2.0