Académique Documents
Professionnel Documents
Culture Documents
11 Manual
1 of 3
https://docs.scipy.org/doc/numpy/reference/generated/numpy.linalg.eig.html
(../../index.html)
Scipy.org (http://scipy.org/)
Docs (http://docs.scipy.org/)
Routines (../routines.html)
next (numpy.linalg.eigh.html)
previous (numpy.linalg.svd.html)
numpy.linalg.eig
numpy.linalg.eig(a) (http://github.com/numpy/numpy
/blob/v1.11.0/numpy/linalg/linalg.py#L1000-L1138)
Previous topic
[source]
a : (..., M, M) array
Matrices for which the eigenvalues and right
eigenvectors will be computed
Returns:
numpy.linalg.svd
(numpy.linalg.svd.html
Next topic
numpy.linalg.eigh
(numpy.linalg.eigh.html
w : (..., M) array
The eigenvalues, each repeated according to
its multiplicity. The eigenvalues are not
necessarily ordered. The resulting array will
be of complex type, unless the imaginary part
is zero in which case it will be cast to a real
type. When a is real the resulting eigenvalues
will be real (0 imaginary part) or occur in
conjugate pairs
v : (..., M, M) array
The normalized (unit length) eigenvectors,
such that the column v[:,i] is the
eigenvector corresponding to the eigenvalue
w[i].
Raises:
LinAlgError
If the eigenvalue computation does not
converge.
See also:
eigvals (numpy.linalg.eigvals.html#numpy.linalg.eigvals)
eigenvalues of a non-symmetric array.
eigh (numpy.linalg.eigh.html#numpy.linalg.eigh) eigenvalues
and eigenvectors of a symmetric or Hermitian (conjugate
symmetric) array.
eigvalsh (numpy.linalg.eigvalsh.html#numpy.linalg.eigvalsh)
eigenvalues of a symmetric or Hermitian (conjugate
symmetric) array.
Notes
New in version 1.8.0.
10/24/2016 10:03 AM
https://docs.scipy.org/doc/numpy/reference/generated/numpy.linalg.eig.html
References
G. Strang, Linear Algebra and Its Applications, 2nd Ed., Orlando, FL,
Academic Press, Inc., 1980, Various pp.
Examples
>>>
>>>
>>> w; v
array([ 1.,
2.,
3.])
array([[ 1.,
0.,
0.],
[ 0.,
1.,
0.],
[ 0.,
0.,
1.]])
Real matrix possessing complex e-values and e-vectors; note that the
e-values are complex conjugates of each other.
>>> w, v = LA.eig(np.array([[1, -1], [1, 1]]))
>>>
>>> w; v
array([ 1. + 1.j,
1. - 1.j])
array([[ 0.70710678+0.j
0.70710678+0.j
],
[ 0.00000000-0.70710678j,
0.00000000+0.707106
78j]])
2 of 3
10/24/2016 10:03 AM
https://docs.scipy.org/doc/numpy/reference/generated/numpy.linalg.eig.html
>>>
>>> w, v = LA.eig(a)
>>> w; v
array([
2.00000000e+00+0.j,
5.98651912e-36+0.j]) #
i.e., {2, 0}
array([[ 0.00000000+0.70710678j,
0.70710678+0.j
],
[ 0.70710678+0.j
0.00000000+0.707106
78j]])
>>>
3 of 3
1.])
0.],
1.]])
10/24/2016 10:03 AM