Skip to content
Prev 36976 / 63421 Next

Use of .Fortran

On Sat, 19 Jun 2010, David Scott wrote:

            
Surely you saw in the posting guide that R-help is not the place for 
questions about C, C++, Fortran code?  Diverting to R-devel.
Well, it is not Fortran 77 but Fortran 95, and so needs to be given a 
.f95 extension to be sure to work.
That does not match.  nrowA and ncolA are unused, so you need
SSFcoef <- function(nmax, nu){
   .Fortran("SSFcoef",
            as.integer(nmax),
            as.integer(nu),
            A = matrix(0, nmax+1, nmax+1),
            0L, 0L)$A
}