Re: [Rd] C code validation

2012-07-28 Thread Adrian Duşa
Dear Prof. Ripley, On Sat, Jul 28, 2012 at 7:54 AM, Prof Brian Ripley wrote: > [...] > See the advice in 'Writing R Extensions'. In particular, the most common > cause is the use of initialized values, so run under valgrind. > > Also check that your C code does not change any of its arguments: i

Re: [Rd] C code validation

2012-07-27 Thread Prof Brian Ripley
On 27/07/2012 23:52, Adrian Duşa wrote: Dear R-devel, I'm trying to validate the results from a C function, against a (trial and tested) older R function. For reasons unknown to me, the C function seems to give different result sometimes at each trial, even with the very same data. See the adv

[Rd] C code validation

2012-07-27 Thread Adrian Duşa
Dear R-devel, I'm trying to validate the results from a C function, against a (trial and tested) older R function. For reasons unknown to me, the C function seems to give different result sometimes at each trial, even with the very same data. These are the relevant outputs from R: > library(QCA