rogersce / cnpy

library to read/write .npy and .npz files in C/C++
MIT License
1.34k stars 301 forks source link

Read NumPy arrays of structs #8

Open mrzv opened 10 years ago

mrzv commented 10 years ago

In Numpy, it's possible to create arrays of structures, e.g.: a = np.zeros((2,),dtype=('i4,i4,f8')) It would be great if one could read these into C/C++ with cnpy.