ferray-io 0.2.9

NumPy-compatible file I/O (.npy, .npz, memory-mapped) for ferray
Documentation

ferray-io

NumPy-compatible file I/O for the ferray scientific computing library.

What's in this crate

  • .npy read/write — single array serialization (all dtypes, C/Fortran order)
  • .npz read/write — compressed archives of named arrays
  • Memory mappingmmap_npy for zero-copy access to large files
  • Text I/Oloadtxt, savetxt, genfromtxt with delimiter/comment/skip support
  • Structured dtype support for compound types

Usage

use ferray_io::{save_npy, load_npy};
use ferray_core::prelude::*;

let a = Array1::<f64>::linspace(0.0, 1.0, 1000)?;
save_npy("data.npy", &a)?;
let b: Array1<f64> = load_npy("data.npy")?;

This crate is re-exported through the main ferray crate with the io feature (enabled by default).

License

MIT OR Apache-2.0