You can't do this. Some of LAPACK is included in the lapack module, but
that is not a part of R that is always loaded, and the code has been
corrected.
Similarly you cannot easily use compiled code in another package.
What's so hard about linking your own code against your system's lapack
library?
On Wed, 21 Aug 2002, xiaoping Jin wrote:
>
>
> Hi,
>
> Now I am writting a R program, which calls a C program by using
> .C function. I like to use some matrix calculation functions provided by
> R package in my C program, for example, Cholesky decomposition.
>
> When I read "write R extension", it saild "the header file
> R_ext/linpack.h contains BLAS, LINPACK functions included in R. But we
> know LAPACK is better than Linpack. Is it possible to use functions from
> LAPACK. I also saw R_ext/lapack.h in src/r_ext directory. How to use
> this header file?
>
> I have checked "matrix" package. There it used functions from
lapack c++
> . How to use those information in my C program? What I should do?
>
> Hope you can help me out!
>
>
>
> Thanks,
>
>
> Xiaoping
>
>
>
>
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read
> http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info",
"help", or
> "[un]subscribe" (in the "body", not the subject !) To:
> r-help-request at stat.math.ethz.ch
>
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at
stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._