scipy.sparse.dok_matrix.

tocsr#

dok_matrix.tocsr(copy=False)[来源]#

将此数组/矩阵转换为压缩稀疏行格式。

当 copy=False 时,数据/索引可能在此数组/矩阵和结果 csr_array/matrix 之间共享。