I am trying to store data on my hard drive that comes in the form of 2 million symmetric 100x100 matrices. Almost all elements of these matrices are non-zero. I am currently saving this data in 200 npy files; each of which has size 5.1GB and contains 100000x100x100 numpy array. This takes up more than 1TB of hard drive space.
Is there anyway that I can use the fact that the matrices are symmetric to save space on my hard drive?
condensedform, and can switch between that andsquareform. Condensed is the triangular values as 1d.savez_compressednext time.