potocpav / npy-rs

NumPy file format (de-)serialization in Rust
30 stars 7 forks source link

Complex numbers #20

Open jkelleyrtp opened 3 years ago

jkelleyrtp commented 3 years ago

It would be nice to have complex numbers much the same way the numpy crate supports them through num-complex.

ExpHP commented 3 years ago

If you're desperate, I added complex support to a fork here: https://github.com/ExpHP/nippy. (to enable it add features = ["complex"], and it uses types from num-complex). I was planning to eventually make a PR for it here at some point after my other PRs got merged.

Movement on this repo has been glacial. I'm beginning to wonder if I should pick that fork back up and release it on crates.io (though it has been a while and I've long lost all of the momentum I had on it...).


Edit: My fork has finally been published at https://crates.io/crates/npyz. In addition to complex support, it includes support for io::Read/io::Write and n-dimensional arrays.