Very large matrices using Python and NumPy

后端 未结 11 2076
难免孤独
难免孤独 2020-11-22 13:51

NumPy is an extremely useful library, and from using it I\'ve found that it\'s capable of handling matrices which are quite large (10000 x 10000) easily, but begins to strug

11条回答
  •  北恋
    北恋 (楼主)
    2020-11-22 14:33

    You should be able to use numpy.memmap to memory map a file on disk. With newer python and 64-bit machine, you should have the necessary address space, without loading everything into memory. The OS should handle only keep part of the file in memory.

提交回复
热议问题