scipy.sparse.dia_matrix. tocsc# dia_matrix.tocsc(copy=False)[原始碼]# 將此陣列/矩陣轉換為壓縮稀疏行格式。 若 copy=False,則此陣列/矩陣與產生的 csc_array/matrix 之間可能會共用資料/索引。