from scipy.sparse import coo_matrix
row = [2,2,3,2]
col = [3,4,2,3]
c = coo_matrix((data,(row,col)),shape=(5,6))
python 生成稀疏矩阵
最新推荐文章于 2024-06-15 06:40:30 发布
from scipy.sparse import coo_matrix
row = [2,2,3,2]
col = [3,4,2,3]
c = coo_matrix((data,(row,col)),shape=(5,6))