sparse 3d matrix/array in Python?

后端 未结 6 1915
借酒劲吻你
借酒劲吻你 2020-12-02 15:13

In scipy, we can construct a sparse matrix using scipy.sparse.lil_matrix() etc. But the matrix is in 2d.

I am wondering if there is an existing data structure for sp

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-02 15:55

    Have a look at sparray - sparse n-dimensional arrays in Python (by Jan Erik Solem). Also available on github.

提交回复
热议问题