[Scipy-tickets] [SciPy] #466: Different results between sparse and dense operations

SciPy scipy-tickets@scipy....
Wed Jul 25 13:25:55 CDT 2007


#466: Different results between sparse and dense operations
--------------------------+-------------------------------------------------
 Reporter:  nils          |        Owner:  wnbell       
     Type:  defect        |       Status:  closed       
 Priority:  high          |    Milestone:  0.5.3 Release
Component:  scipy.sparse  |      Version:  devel        
 Severity:  critical      |   Resolution:  fixed        
 Keywords:                |  
--------------------------+-------------------------------------------------
Comment (by stefan):

 Where's the regression test?  Here's some code that narrows down the
 problem:

 {{{
 from scipy import linalg, ones
 from scipy.sparse import speye
 from numpy.testing import assert_almost_equal

 B0 = speye(100,100)
 B1 = B0.toarray()
 assert_almost_equal(linalg.norm(B0-B1),0)
 }}}

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


More information about the Scipy-tickets mailing list