|
Chapter Contents |
Previous |
Next |
| Language Reference |
computes eigenvalues and eigenvectors
where A is an arbitrary square numeric matrix for which eigenvalues and eigenvectors are to be calculated.
The EIGEN call returns the following values:
The EIGEN subroutine computes eigenvalues,
a matrix containing the eigenvalues of
A arranged in descending order. If A
is symmetric, eigenvalues in the n ×1 vector containing
the n real eigenvalues of A.
If A is not symmetric (as determined by the criterion
described below) eigenvalues
is an n ×2 matrix containing the eigenvalues of the
n ×n matrix A. The first column
of A contains the real parts, Re(
, and the
second column contains the imaginary parts Im
.Each row represents one eigenvalue,
.Complex conjugate eigenvalues, Re
,are stored in standard order; that is, the eigenvalue of
the pair with a positive imaginary part is followed by the
eigenvalue of the pair with the negative imaginary part.
The EIGEN subroutine also computes eigenvectors,
a matrix. If A is symmetric, then
eigenvectors has orthonormal column eigenvectors of
A arranged so that the matrices correspond;
that is, the first column of eigenvectors is the
eigenvector corresponding to the largest eigenvalue, and so forth.
If A is not symmetric, then
eigenvectors is an n ×n matrix containing
the right eigenvectors of A.
If the eigenvalue in row i of eigenvalues is real, then column
i of eigenvectors contains the corresponding real eigenvector.
If rows i and i+1 of eigenvalues contain complex
conjugate eigenvalues Re
,then columns i and i+1 of eigenvectors contain the real,
v, and imaginary, u, parts, respectively,
of the two corresponding eigenvectors
.
The eigenvalues of a matrix A are the
roots of the characteristic polynomial, which
is defined as p(z) = det(zI- A).
The spectrum, denoted by
, is
the set of eigenvalues of the matrix A.
If
, then
.
The trace of A is defined by

An eigenvector is a nonzero vector, x, that satisfies
for
.
Right eigenvectors satisfy
, and left
eigenvectors satisfy
.
The following are properties of the unsymmetric real eigenvalue problem, in which the real matrix A is square but not necessarily symmetric:
The three routines, EIGEN, EIGVAL, and EIGVEC, use the following test of symmetry for a square argument matrix A:


If A is symmetric, the result of the statement
call eigen(m,e,a);has the properties

In statistical applications, nonsymmetric matrices for which eigenvalues are desired are usually of the form E-1 H, where E and H are symmetric. The eigenvalues L and eigenvectors V of E-1H can be obtained by using the GENEIG subroutine or as follows:
f=root(einv); a=f*h*f'; call eigen(l,w,a); v=f'*w;The computation can be checked by forming the residuals:
r=einv*h*v-v*diag(l);The values in R should be of the order of round-off error.
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.