[Rcpp-devel] speed fix

2010-12-27 Thread Richard Chandler
Hi, I am trying to speed up a vectorized R function without much luck. Perhaps it is not possible, but if it is could someone suggest how to improve the C++/Rcpp code below? The speed is approximately equal on a 64-bit version of R, but the R code is much faster when using 32-bit R (on windows). H

Re: [Rcpp-devel] speed fix

2010-12-27 Thread Douglas Bates
On Mon, Dec 27, 2010 at 6:57 AM, Richard Chandler wrote: > Hi, > > I am trying to speed up a vectorized R function without much luck. Perhaps > it is not possible, but if it is could someone suggest how to improve the > C++/Rcpp code below? The speed is approximately equal on a 64-bit version of >

Re: [Rcpp-devel] speed fix

2010-12-27 Thread Douglas Bates
My apologies, I accidentally hit send on an incomplete message. On Mon, Dec 27, 2010 at 8:34 AM, Douglas Bates wrote: > On Mon, Dec 27, 2010 at 6:57 AM, Richard Chandler > wrote: >> Hi, >> >> I am trying to speed up a vectorized R function without much luck. Perhaps >> it is not possible, but if

Re: [Rcpp-devel] speed fix

2010-12-27 Thread Richard Chandler
Thanks, that's very helpful. I'll experiment with this and report back if things speed up substantially. Richard On Mon, Dec 27, 2010 at 9:58 AM, Douglas Bates wrote: > My apologies, I accidentally hit send on an incomplete message. > > On Mon, Dec 27, 2010 at 8:34 AM, Douglas Bates > wrote: