[SciPy-User] How does coo_matrix((data, (i, j)), [shape=(M, N)]) work?
Matti Viljamaa
mviljamaa at kapsi.fi
Tue Apr 17 15:53:51 EDT 2018
I’m confused about the following instantiation of coo_matrix:
coo_matrix((data, (i, j)), [shape=(M, N)])
data contains the entries of the matrix in any order. Why can they be in any order? Is data a vector or a matrix?
What are i,j used for?
BR, Matti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-user/attachments/20180417/f07a2f8c/attachment.html>
More information about the SciPy-User
mailing list