[Scipy-tickets] [SciPy] #825: `scipy.sparse.eye` inconsistent with `numpy.eye`

SciPy scipy-tickets@scipy....
Sat Dec 27 15:04:05 CST 2008


#825: `scipy.sparse.eye` inconsistent with `numpy.eye`
--------------------------+-------------------------------------------------
 Reporter:  chtito        |       Owner:  wnbell
     Type:  defect        |      Status:  new   
 Priority:  normal        |   Milestone:        
Component:  scipy.sparse  |     Version:        
 Severity:  major         |    Keywords:        
--------------------------+-------------------------------------------------
 Here is a simple test to evidence the problem:
 {{{
 >>> numpy.eye(2,4,1)
 array([[ 0.,  1.,  0.,  0.],
        [ 0.,  0.,  1.,  0.]])
 >>> scipy.sparse.eye(2,4,1).toarray()
 array([[ 0.,  1.,  0.,  0.],
        [ 0.,  0.,  0.,  0.]])
 }}}

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


More information about the Scipy-tickets mailing list