Re: [R] Calling fft from C

2010-05-30 Thread Gunnar Hellmund
is possible to use other R functions in C using #include etc) Best, Gunnar On Sun, May 30, 2010 at 8:12 PM, Gabor Grothendieck wrote: > The Writing R Extensions manual specifically uses convolve as an > example of calling C from R. > > On Sun, May 30, 2010 at 2:08 PM, Gunnar Hel

[R] Calling fft from C

2010-05-30 Thread Gunnar Hellmund
<- c(rep.int(0,exp.length-1),x) n <- length(y<-c(y, rep.int(0, irf.length -1))) x <- fft(fft(x) * Conj(fft(y)), inverse=TRUE) return(Re(x)/n) } -- Best wishes/bedste hilsner Gunnar Hellmund cand. scient., PhD http://staff.pubhealth.ku.dk/~guhe/ --- “If everyone is th

[R] .Fortran and memory allocation

2008-12-10 Thread Gunnar Hellmund
Hi I know it is not recommended to use dup=FALSE with .Fortran calls, but ... 1) Is it possible to allocate memory for a large array of type double or integer without initializing the array (and how is this done) 2) If the answer to question 1) is 'Yes': Is it possible to pass the uninitialized