[Scipy-tickets] [SciPy] #1632: Incorrect application of nonzero() to ndarry object.

SciPy Trac scipy-tickets@scipy....
Mon Mar 26 14:38:00 CDT 2012


#1632: Incorrect application of nonzero() to ndarry object.
--------------------------+-------------------------------------------------
 Reporter:  tacass        |       Owner:  somebody   
     Type:  defect        |      Status:  new        
 Priority:  normal        |   Milestone:  Unscheduled
Component:  scipy.sparse  |     Version:  0.10.0     
 Keywords:                |  
--------------------------+-------------------------------------------------
 In scipy.sparse.coo.py line 185:

 self.row,self.col = (M != 0).nonzero()

 should be:

 self.row,self.col = M.nonzero()

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


More information about the Scipy-tickets mailing list