scipy.sparse.csr_matrix. todia# csr_matrix.todia(copy=False)[source]# 将此数组/矩阵转换为稀疏 DIAgonal 格式。 当 copy=False 时,数据/索引可能在此数组/矩阵和结果 dia_array/矩阵之间共享。