jturner314 / ndarray-npy

.npy and .npz file format support for ndarray
https://docs.rs/ndarray-npy
Apache License 2.0
56 stars 18 forks source link

Support Fortran layout in write_zeroed_npy #42

Open jturner314 opened 3 years ago

jturner314 commented 3 years ago

It would be nice to support creating an array with Fortran layout using write_zeroed_npy. I considered using ndarray::ShapeBuilder for this, but that trait doesn't currently expose enough information about the shape/layout for ndarray-npy to use it. We could add our own trait like ShapeBuilder, but the duplication seems unnecessary. ndarray is planning to overhaul the constructor API anyway, so I plan to wait until that's done and see if we can reuse types/traits from ndarray.

If someone has a need for this feature in the short-term, please comment here.