[Scipy-tickets] [SciPy] #381: Bug report: scipy crashes when trying to invert empty matrix

SciPy scipy-tickets@scipy....
Wed May 30 16:58:05 CDT 2007


#381: Bug report: scipy crashes when trying to invert empty matrix
--------------------------+-------------------------------------------------
 Reporter:  emin63        |        Owner:  somebody     
     Type:  defect        |       Status:  new          
 Priority:  normal        |    Milestone:  0.5.3 Release
Component:  scipy.linalg  |      Version:  devel        
 Severity:  normal        |   Resolution:               
 Keywords:                |  
--------------------------+-------------------------------------------------
Changes (by nils):

  * version:  0.5.2 => devel
  * milestone:  => 0.5.3 Release

Comment:

 {{{
 >>> import scipy
 >>> x = scipy.matrix([])
 >>> x.I
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/usr/local/lib64/python2.5/site-packages/numpy/core/defmatrix.py",
 line 412, in getI
     return asmatrix(func(self))
   File "/usr/local/lib64/python2.5/site-packages/scipy/linalg/basic.py",
 line 481, in pinv2
     u, s, vh = decomp.svd(a)
   File "/usr/local/lib64/python2.5/site-packages/scipy/linalg/decomp.py",
 line 509, in svd
     overwrite_a = overwrite_a)
 ValueError: failed to create intent(cache|hide)|optional array-- must have
 defined dimensions but got (0,0,)
 >>> scipy.__version__
 '0.5.3.dev3060'
 }}}

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


More information about the Scipy-tickets mailing list