Chapter Contents |
Previous |
Next |
Language Reference |
where A is a square numeric matrix.
The EIGVEC function creates a matrix containing the right eigenvectors of A. See the description of the EIGEN subroutine for more details.
You can obtain the left eigenvectors by first transposing A.
An example calculating the eigenvectors of a symmetric matrix follows:
x={1 1,1 2,1 3,1 4}; xpx=t(x)*x; a=eigvec(xpx); /* xpx is a symmetric matrix */The matrix produced containing the eigenvectors is
A 2 rows 2 cols (numeric) 0.3220062 0.9467376 0.9467376 -0.322006
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.