[SciPy-User] how to obtain I, J, V from sparse matrix (V, (I, J)) ?
Tue Mar 20 17:47:49 CDT 2012
Thank you. I was working with csr_matrix which lacks row and col
attributes. I'll just cast to coo_matrix.
On Tue, Mar 20, 2012 at 5:55 PM, Pauli Virtanen <email@example.com> wrote:
> 20.03.2012 22:08, Jose Borreguero kirjoitti:
> > Scipy docs state one can construct a matrix from three 1D
> > arrays,A=sparse.coo_matrix((V,(I,J)),shape=(4,4))
> > However, given sparse matrix A, how can I obtain arrays V, I, and J?
> > I could not find any methods of the sparse matrix that would return
> these arrays...
> Check out the `data`, `row` and `col` attributes:
> SciPy-User mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-User