You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry, there is one thing I ignored previously. When there are duplicate elements, the behavior will be different. Converting to csr will first sum them, but directly multiplying will keep them.
coo_matrix.multiply()
method is inherited fromspmatrix
, which convertself
tocsr
format before calculating.However, in
csr_matrix.multiply()
, when multiplying a dense vector, it's done by converting tocoo_matrix
first. It's inherited from_cs_matrix
.That is to say,
coo_matrix.multiply()
should be overwritten to avoid these two time-consuming and meaningless converting.Scipy/Numpy/Python version information:
scipy:1.2.1
numpy:1.16.2
python:3.6.7
The text was updated successfully, but these errors were encountered: