Re: [R] Calling LAPACK functions directly from R

2007-04-11 Thread Prof Brian Ripley
This was much more appropriate for R-devel, so please move any followup there. On Wed, 11 Apr 2007, William Constantine wrote: > I am interested in tapping into LAPACK functionality directly from R. > Using R-2.4.1 for Windows, I was able to do so ala: > > dyn.load("bin/Rlapack.dll") > is.loaded

[R] Calling LAPACK functions directly from R

2007-04-11 Thread William Constantine
I am interested in tapping into LAPACK functionality directly from R. Using R-2.4.1 for Windows, I was able to do so ala: dyn.load("bin/Rlapack.dll") is.loaded("dstebz") # returns TRUE N <- 100 NW <- 4 n.tapers <- 5 tpW <- (2 * pi * NW)/N otNmo <- 1:N D <- as.double(cos(tpW) * ((N - 1 - 2 * (0:(N