Using memory mapped buffers for scipy sparse

人走茶凉 提交于 2019-12-25 03:13:52

问题


I have to handle sparse matrix that can occasionally be very big, nearing or exceeding RAM capacity. I also need to support mat*vec and mat*mat operations.

Since internally a csr_matrix is 3 arrays data, indices and indptr is it possible to create a csr matrix from numpy memmap.


回答1:


This works without any problems.



来源:https://stackoverflow.com/questions/49835342/using-memory-mapped-buffers-for-scipy-sparse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!