Re: [Rcpp-devel] sugar performance

2010-12-22 Thread Douglas Bates
On Wed, Dec 22, 2010 at 5:33 AM, wrote: >  Hello, > > Following Gabor's thread yesterday, I looked into R source code and figure > that we don't need to test for NA when using numeric vector. See this: > > require(inline) > require(Rcpp) > > pl <- cxxfunction( , ' >    return List::create( >    

Re: [Rcpp-devel] sugar performance

2010-12-22 Thread romain
Le mer 22/12/10 13:02, "Gabor Grothendieck" ggrothendi...@gmail.com a écrit: > On Wed, Dec 22, 2010 at 6:33 AM, i...@r-enthusiasts.com> wrote: > Also, I'm trying to write the looping internally in > order to get a better comparison. With the attached file, I > get: > The attachment does not see

Re: [Rcpp-devel] sugar performance

2010-12-22 Thread Gabor Grothendieck
On Wed, Dec 22, 2010 at 6:33 AM, wrote: > Also, I'm trying to write the looping internally in order to get a better > comparison. With the attached file, I get: The attachment does not seem to have made it through. -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-

[Rcpp-devel] sugar performance

2010-12-22 Thread romain
Hello, Following Gabor's thread yesterday, I looked into R source code and figure that we don't need to test for NA when using numeric vector. See this: require(inline) require(Rcpp) pl <- cxxfunction( , ' return List::create( NA_REAL + NA_REAL, NA_REAL + 1.0, 1