Re: [Rcpp-devel] Using sugar expressions for evaluating deviance residuals

2010-08-15 Thread Douglas Bates
On Sun, Aug 15, 2010 at 10:34 AM, Douglas Bates wrote: > On Sun, Aug 15, 2010 at 3:39 AM, Romain Francois > wrote: >> Hi, >> >> Could you provide some minimal example using inline, etc ... > > I enclose a comparison of several different versions that I wrote. > Interestingly the old code, called

Re: [Rcpp-devel] Using sugar expressions for evaluating deviance residuals

2010-08-15 Thread Douglas Bates
On Sun, Aug 15, 2010 at 3:39 AM, Romain Francois wrote: > Hi, > > Could you provide some minimal example using inline, etc ... I enclose a comparison of several different versions that I wrote. Interestingly the old code, called by fx3, does reasonably well, although I'm not sure if this is a fai

Re: [Rcpp-devel] Using sugar expressions for evaluating deviance residuals

2010-08-15 Thread Romain Francois
Hi, Could you provide some minimal example using inline, etc ... Here are a few hints in the meantime. In the next version of Rcpp, I've added a few things that help generating sugar functions. This is how for example the sugar version of choose is currently implemented : SUGAR_BLOCK_2(choos