[R] Computing generalized eigenvalues

Peter Dalgaard p.dalgaard at biostat.ku.dk
Mon Jun 20 17:41:13 CEST 2005


Joshua Gilbert <joshuacgilbert at gmail.com> writes:

> > > As I understand it, Lapack __can__ computer them
> > > (http://www.netlib.org/lapack/lawn41/node111.html) 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.
> > 
> 
> help.search('dggev') doesn't return anything. How do I access these routines?

It's not *that* easy! You need to roll your own interface; take a look
at the implementation in solve.default. You likely also need to
construct the counterpart to La_dgesv.

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907




More information about the R-help mailing list