Re: [Rcpp-devel] Creating pointers to objects and wrapping them

2011-04-17 Thread Dirk Eddelbuettel
Peter, On 17 April 2011 at 10:45, schattenpfla...@arcor.de wrote: | Hello, | | I have made progress exposing my C++ classes to R with Rcpp-Modules and | I really like the way it works. Thanks for this great package! | | There are, however, lots of aspects about Rcpp which I do not yet fully |

Re: [Rcpp-devel] [R] Find number of elements less than some number: Elegant/fastsolution needed

2011-04-17 Thread Douglas Bates
I enclose some comparisons, admittedly on only one size of example (10 million in the reference distribution and 100,000 in the test sample). The versions using Rcpp and the std algorithms came out about 3 times as fast as the version using R's findInterval. What surprises me is that the sequenti

[Rcpp-devel] Creating pointers to objects and wrapping them

2011-04-17 Thread schattenpflanze
Hello, I have made progress exposing my C++ classes to R with Rcpp-Modules and I really like the way it works. Thanks for this great package! There are, however, lots of aspects about Rcpp which I do not yet fully understand. Here is one of them: I have exposed a C++ class MyClass to R via an