scipy.sparse.dok_matrix.

todok#

dok_matrix.todok(copy=False)[source]#

將此陣列/矩陣轉換為鍵值字典格式。

當 copy=False 時,此陣列/矩陣和結果 dok_array/matrix 之間可能會共享資料/索引。