Re: [Rd] .C and .Call: convolve example not working

2011-08-12 Thread Lars Wißler
Thanks a lot for the help Thomas and William, that solved it. I am used to programming Java and didn't think of checking my print function. Regards Lars 2011/8/11 Thomas Lumley : > On Fri, Aug 12, 2011 at 1:06 AM, Lars Wißler wrote: >> Dear R users, >> >> I want to

[Rd] .C and .Call: convolve example not working

2011-08-11 Thread Lars Wißler
Dear R users, I want to call C code via the .C or .Call interface. This works fine with integer values but using doubles the array received in C will be set to zeros. I have tried the convolve examples (Writing R extensions, chapter 5.2) and still the resulting array consists of zeros. My code (

[Rd] Adressing Problems: R with Fortran and OpenMP

2011-08-08 Thread Lars Wißler
Hello, I am programming an R program with nested Fortran calls for calculations and OpenMP for parallelization. I am getting a changing error corresponding to memory addressing problems, when using a 64-bit system. Using a 32-bit System the application runs without problems. The errors on 64-bit r