Feature request: the ability to load numpy .npy binary files into Swift arrays
thearn opened this issue · 1 comments
thearn commented
calling numpy.save
on a numpy array saves it to disk in a binary format. If these could be loaded into Swift directly, that would be pretty amazing. Existing codes could crunch out interpolant data on a desktop machine, for later use within a mobile application.
stsievert commented
This library has similar functions, read_csv/write_csv. These aren't speed- or space-effecient functions, but they give the same functionality.
I would guess that a similar to function to np.save could easily be written. My guess it'd assigning some bits from !ndarray.grid
as well as some limited meta information. I have no pressing need to develop this but would gladly welcome pull requests.