[SciPy-user] Creating a sparse matrix

Robert Cimrman cimrman3@ntc.zcu...
Thu Dec 13 09:45:43 CST 2007

Nils Wagner wrote:
> Thank you very much for your code snippet !
> How do I use the COO constructor to build the
> matrix from rows, cols and vals ?

A = coo_matrix( (vals, (rows, cols)) )


More information about the SciPy-user mailing list