scipy.sparse.dia_matrix.

todia#

dia_matrix.todia(copy=False)[原始碼]#

將此陣列/矩陣轉換為稀疏 DIAgonal 格式。

當 copy=False 時,此陣列/矩陣與結果 dia_array/矩陣之間可以共享資料/索引。