I am attempting to read in an npy file (numpys mmap format) directly in C++ but have had some difficulties.
The file was written using numpy and can be easily read back in using numpy (so it hasnt corrupted or anything).
My first attempt was the use the cnpy package (https://github.com/rogersce/cnpy) directly however this throws an assertion error regarding the size of the file header.
Does anyone have an example of creating a npy file in numpy and reading it in C++?
Cheers, Jack