[Scipy-tickets] [SciPy] #1113: scipy.linalg.eig crash on LinAlgError

SciPy Trac scipy-tickets@scipy....
Sat Mar 20 11:27:14 CDT 2010


#1113: scipy.linalg.eig crash on LinAlgError
--------------------------+-------------------------------------------------
 Reporter:  anjiro        |       Owner:  somebody    
     Type:  defect        |      Status:  needs_review
 Priority:  normal        |   Milestone:  0.8.0       
Component:  scipy.linalg  |     Version:  0.7.0       
 Keywords:  eig           |  
--------------------------+-------------------------------------------------
Changes (by warren):

  * status:  new => needs_review


Comment:

 In the example, S and C are not the same shape.  eig() doesn't check that
 the arrays have the same shape, which apparently leads to a crash.

 The attached patch adds a check of the array sizes to eig(). It also adds
 a couple tests.

 I'll wait for another developer to take a look at the changes and confirm
 that this is a reasonable fix before checking it in.

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1113#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