scipy.sparse.bsr_matrix. todia# bsr_matrix.todia(copy=False)[source]# 将此数组/矩阵转换为稀疏 DIAgonal 格式。 如果 copy=False,则此数组/矩阵和生成的 dia_array/矩阵之间可能会共享数据/索引。