Re: [R] Calling a LAPACK subroutine from R

2019-09-11 Thread Göran Broström
Giovanni, you are trying to open a can of worms. Se recent discussions on R-pkg-devel, Writing R Extensions, and the help page for .Fortran. Best, Göran On 2019-09-10 23:44, Giovanni Petris wrote: Hello R-helpers! I am trying to call a LAPACK subroutine directly from my R code using .Fort

[R] Calling a LAPACK subroutine from R

2019-09-10 Thread Giovanni Petris
Hello R-helpers! I am trying to call a LAPACK subroutine directly from my R code using .Fortran(), but R cannot find the symbol name. How can I register/load the appropriate library? > ### AR(1) Precision matrix > n <- 4L > phi <- 0.64 > AB <- matrix(0, 2, n) > AB[1, ] <- c(1, rep(1 + phi^2,