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