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

David Warde-Farley david.warde.farley@utoronto...
Tue Feb 27 14:27:10 CST 2007


If you're going to do it that way you'll have to call linalg.eig()

David

On 27-Feb-07, at 3:24 PM, Rich Shepard wrote:

>    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
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user



More information about the SciPy-user mailing list