Skip to content
Snippets Groups Projects
Commit 9e873a9a authored by Joseph Weston's avatar Joseph Weston
Browse files

fix sparse matrix creation for Python 3 + memoryviews

Under Python 3, `scipy.sparse.coo_matrix` fails when passed memoryviews.
We coerce the memoryviews to numpy arrays before passing them to the
`coo_matrix`. Even though this is kind of a hack it shouldn't be very
inefficient as no data is actually copied. See
https://github.com/scipy/scipy/issues/5123 for details.
parent 35af4335
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment