cnpy++: A C++17 library for reading and writing .npy/.npz files

Maximilian Reininghaus · SoftwareX · 2023

cnpy++ is an easy-to-use C++17 library to read and write data in the NumPy file format (.npy and .npz files), offering more features than other implementations. Besides writing standard arrays of data, it also supports writing data that are exposed via C++ iterators, allowing to serialize data structures that do not reside in contiguous memory. Furthermore, support for structured arrays is provided, which facilitates reading and writing tabular data with labeled columns conveniently.

Read the paper · More papers on PaperTik