mtl5.sparse.to_scipy#
- mtl5.sparse.to_scipy(mtl5_sparse)#
Convert an MTL5 sparse matrix back to scipy.sparse.
CSR and ELL come back as
csr_matrix; COO comes back ascoo_matrix, so a round trip preserves the format rather than silently compressing it — and with it any duplicate triplets, whichtocsr()would have summed.