[SciPy-user] Proper Use of NumPy's eig()

Rich Shepard rshepard@appl-ecosys....
Tue Feb 27 14:24:20 CST 2007


   I start the module with
 	from numpy import linalg

and I need to find the principal Eigenvector of the matrix E. But, when I
try

 	eigE = eig(E)

python responds "NameError: global name 'eig' is not defined."

   Do I need another module from NumPy, should I explicitly cast E to a
matrix, or am I calling the function incorrectly?

Rich

-- 
Richard B. Shepard, Ph.D.               |    The Environmental Permitting
Applied Ecosystem Services, Inc.        |          Accelerator(TM)
<http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863


More information about the SciPy-user mailing list