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