scipy.sparse.dia_array.

tocoo#

dia_array.tocoo(copy=False)[source]#

将此数组/矩阵转换为 COOrdinate 格式。

使用 copy=False,此数组/矩阵和生成的 coo_array/矩阵之间可能会共享数据/索引。