[Scipy-tickets] [SciPy] #606: NameError: global name 'numpy' is not defined

SciPy scipy-tickets@scipy....
Sat Feb 16 14:46:03 CST 2008


#606: NameError: global name 'numpy' is not defined
--------------------------+-------------------------------------------------
 Reporter:  nils          |        Owner:  wnbell
     Type:  defect        |       Status:  closed
 Priority:  high          |    Milestone:  0.7   
Component:  scipy.sparse  |      Version:  devel 
 Severity:  critical      |   Resolution:  fixed 
 Keywords:                |  
--------------------------+-------------------------------------------------
Comment (by wnbell):

 That's because dtype is the second arg of zeros() but not of
 lil_matrix.__init__()

 {{{
 zeros((d1,...,dn),dtype=float,order='C')
 }}}

 {{{
 lil_matrix.__init__(self, A=None, shape=None, dtype=None, copy=False)
 }}}

 dtype=complex will work with both

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


More information about the Scipy-tickets mailing list