[R] highest eigenvalues of a matrix

From: baptiste Auguié <ba208_at_exeter.ac.uk>
Date: Wed, 18 Jun 2008 21:56:05 +0100

DeaR list,

I happily use eigen() to compute the eigenvalues and eigenvectors of a fairly large matrix (200x200, say), but it seems over-killed as its rank is limited to typically 2 or 3. I sort of remember being taught that numerical techniques can find iteratively decreasing eigenvalues and corresponding orthogonal eigenvectors, which would provide a nice alternative (once I have the first 3, say, I stop the search).

Looking at the R source code for eigen and some posts on this list, it seems that the function uses a LAPACK routine, but obviously all the options are not available through the R wrapper. I'm not experienced enough to try and make my own interface with Fortran code, so here are two questions:

Many thanks in advance for any piece of advice,



dummy example if needed:

test <- matrix(c(1, 2, 0, 4, 5, 6, 1.00001, 2, 0), ncol=3) eigen(test)

Baptiste Auguié

Physics Department
University of Exeter
Stocker Road,
Exeter, Devon,

Phone: +44 1392 264187


R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 18 Jun 2008 - 21:08:56 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 19 Jun 2008 - 09:31:02 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive