Re: [R] Computing generalized eigenvalues

From: Prof Brian Ripley <>
Date: Fri 17 Jun 2005 - 18:33:58 EST

On Thu, 16 Jun 2005, Joshua Gilbert wrote:

> I need to compute generalized eigenvalues. The eigen function in base
> doesn't do it and I can't find a package that does.

They are very rarely used in statistics, so this is not surprising.

I presume you mean solving Ax = lambda B x: if B is non-singular this reduces to a conventional eigenproblem for B^{-1}A.

> As I understand it, Lapack __can__ computer them
> ( and R can use
> Lapack. If there is no function already, can I access Lapack from R
> and use those routines directly?

Yes, you can: for real matrices the requisite routines are already compiled into R. See DGGES or DGGEV.

Brian D. Ripley,        
Professor of Applied Statistics,
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________ mailing list
PLEASE do read the posting guide!
Received on Fri Jun 17 18:36:23 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:46 EST