scipy.sparse.dok_array.

todia#

dok_array.todia(copy=False)[source]#

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

使用 copy=False,資料/索引可能會在此陣列/矩陣和產生的 dia_array/matrix 之間共享。