Re: [R] Calling fft from C

2010-05-30 Thread biostatmatt
The fft in R has the following C call chain file purpose src/main/names.c links R function "fft" to do_fft src/main/fourier.cdo_fft calls fft_factor, fft_work src/appl/fft.chome of fft_factor, fft_work If you want to use the fft at a low level, yo

Re: [R] Calling fft from C

2010-05-30 Thread Gunnar Hellmund
Thanks for the reply, but ... No, I am not interested in the convolution function defined in the R-extensions manual. I want to use a fast fourier transform version implemented in C returning values to another C function. So the question is: How do I call the fft supplied by R in C? (just like it

Re: [R] Calling fft from C

2010-05-30 Thread Gabor Grothendieck
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 Hellmund wrote: > Hi > > I have made a R function 'convolve2' for convolution of two real > valued vectors based on Rs 'convolve' with option type="open" - see > b

[R] Calling fft from C

2010-05-30 Thread Gunnar Hellmund
Hi I have made a R function 'convolve2' for convolution of two real valued vectors based on Rs 'convolve' with option type="open" - see below. (exp.length and irf.length are variables set in another part of the program) I wish to implement the function convolve2 in C and use it in a function used