[Scipy-tickets] [SciPy] #826: Multiplication of sparse arrays completely wrong

SciPy scipy-tickets@scipy....
Sat Dec 27 17:36:05 CST 2008

#826: Multiplication of sparse arrays completely wrong
 Reporter:  chtito        |        Owner:  wnbell
     Type:  defect        |       Status:  closed
 Priority:  normal        |    Milestone:        
Component:  scipy.sparse  |      Version:        
 Severity:  critical      |   Resolution:  fixed 
 Keywords:                |  
Changes (by wnbell):

  * status:  new => closed
  * resolution:  => fixed


 Note that s*i performs matrix multiplication, not pointwise
 multiplication.  If you want pointwise multiplication, use:

 Sparse matrices are more like numpy.matrix than numpy.ndarray.

 Your example exposes a bug that's been fixed in r5294.  s*i now raises an
 exception since the inner dimensions of s and i don't match.

Ticket URL: <http://scipy.org/scipy/scipy/ticket/826#comment:1>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.

More information about the Scipy-tickets mailing list