f08fa {NAGFWrappers} | R Documentation |
f08fa computes all the eigenvalues and, optionally, all the eigenvectors of a real n by n symmetric matrix A.
f08fa(jobz, uplo, a, n = nrow(a))
jobz |
string If jobz='N', compute eigenvalues only. |
uplo |
string If uplo='U', the upper triangular part of A is stored. |
a |
double array The n by n matrix A. See the Fortran Library documentation for a description of the storage layout for this array. |
n |
integer: default = nrow(a) n, the order of the matrix A. |
R interface to the NAG Fortran routine F08FAF.
A |
double array If jobz='V', then if IN=0, a contains the orthonormal eigenvectors of the matrix A. |
W |
double array If IN=0, the eigenvalues in ascending order. |
INFO |
integer info = 0unless the function detects an error (see the Errors section in Fortran library documentation). |
NAG
http://www.nag.co.uk/numeric/FL/nagdoc_fl23/pdf/F08/f08faf.pdf
jobz<-'Vectors' uplo<-'Upper' a<-matrix(c(1,2,3,4,0,2,3,4,0,0,3,4,0,0,0,4),nrow=4,ncol=4,byrow=TRUE) f08fa(jobz,uplo,a)