[Numpy-tickets] [NumPy] #622: function for computing the condition number

NumPy numpy-tickets@scipy....
Fri Nov 30 11:19:26 CST 2007

#622: function for computing the condition number
 Reporter:  LevGivon      |       Owner:  somebody       
     Type:  enhancement   |      Status:  new            
 Priority:  normal        |   Milestone:  1.0.5          
Component:  numpy.linalg  |     Version:  none           
 Severity:  normal        |    Keywords:  condition, norm
 Trivial suggested addition to numpy.linalg:

 from numpy.linalg import norm,inv

 def cond(x,p=2):
     '''Compute the condition number of a matrix using
     the p-norm.'''

     return norm(x,p)*norm(inv(x),p)

Ticket URL: <http://scipy.org/scipy/numpy/ticket/622>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.

More information about the Numpy-tickets mailing list