stsievert / swix

Swift Matrix Library
http://docs.stsievert.com/swix/
MIT License
593 stars 54 forks source link

Feature request: the ability to load numpy .npy binary files into Swift arrays #4

Closed thearn closed 9 years ago

thearn commented 9 years ago

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 9 years ago

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.