阅读背景:

scipy: 稀疏矩阵 indptr_NockinOnHeavensDoor的博客

来源:互联网 

例子:

from scipy import sparse
data = np.array([1, 4, 5, 2, 3, 6])
indices = np.array([0, 2, 2, 0, 1, 2])
indptr = np.array([0, 2, 3, 6])
mtx = sparse.csr_matrix((data, indices, indptr), shape=(3, 3))
from scipy import sparse
data = np



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: