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

SciPy scipy-tickets@scipy....
Sat Feb 16 14:28:48 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 nils):

 But dtype is not needed in the following. For what reason ?
 {{{
 In [11]: from numpy import zeros

 In [12]: zeros((2,2),float)
 Out[12]:
 array([[ 0.,  0.],
        [ 0.,  0.]])

 In [13]: zeros((2,2),complex)
 Out[13]:
 array([[ 0.+0.j,  0.+0.j],
        [ 0.+0.j,  0.+0.j]])

 }}}

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


More information about the Scipy-tickets mailing list