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