scipy.sparse.bsr_matrix. todia# bsr_matrix.todia(copy=False)[source]# 將此陣列/矩陣轉換為稀疏 DIAgonal 格式。 當 copy=False 時,資料/索引可能會在此陣列/矩陣和產生的 dia_array/matrix 之間共享。