Re: [Rcpp-devel] Integrals with Rcpp

2015-01-14 Thread Federico Andreis
Thanks a lot, Baptiste! I'll check your code asap. Cheers, /f On Tue, Jan 13, 2015 at 7:14 PM, Baptiste Auguie wrote: > Hi, > > I might be the author of the SO question you refer to. In the planar > package I've tried a number of different strategies for numerical > integration, but the most

Re: [Rcpp-devel] Advice on making interface into existing C++ library

2015-01-14 Thread Dirk Eddelbuettel
On 13 January 2015 at 08:51, Jeffrey Wong wrote: | Thanks Dirk, would I still create a rcpp skeleton package and dump the *.cpp | files into src, then just use Rcpp::export? What about all the .h files in that | library? Yes you need those too, either in the same directory or in one the compiler

Re: [Rcpp-devel] Integrals with Rcpp

2015-01-14 Thread Dirk Eddelbuettel
On 13 January 2015 at 15:14, Baptiste Auguie wrote: | Hi, | | I might be the author of the SO question you refer to. In the planar package | I've tried a number of different strategies for numerical integration, but the | most efficient I managed was at the C++ level, with direct call to the cub

Re: [Rcpp-devel] Integrals with Rcpp

2015-01-14 Thread Baptiste Auguie
On 14 January 2015 at 10:01, Dirk Eddelbuettel wrote: > > On 13 January 2015 at 15:14, Baptiste Auguie wrote: > | Hi, > | > | I might be the author of the SO question you refer to. In the planar > package > | I've tried a number of different strategies for numerical integration, > but the > | mos

Re: [Rcpp-devel] Rcpp modules and S3 dispatch on rbind/cbind

2015-01-14 Thread Louis Aslett
Just for the list record I think I've figured this out. It turns out that there is an S4 approach to this now, whereby one actually sets appropriate methods for the rbind2 and cbind2 functions in the methods package and then call: On 12 January 2015 at 13:44, Louis Aslett wrote: > I've encounte

Re: [Rcpp-devel] Rcpp modules and S3 dispatch on rbind/cbind

2015-01-14 Thread Louis Aslett
Sorry hit send prematurely Just for the list record I think I've figured this out. It turns out that there is an S4 approach to this now, whereby one actually sets appropriate methods for the rbind2 and cbind2 functions in the methods package and then call: methods:::bind_activation(on = TR

Re: [Rcpp-devel] Rcpp modules and S3 dispatch on rbind/cbind

2015-01-14 Thread Dirk Eddelbuettel
On 14 January 2015 at 15:00, Louis Aslett wrote: | Sorry hit send prematurely | | Just for the list record I think I've figured this out. It turns out | that there is an S4 approach to this now, whereby one actually sets Sweet, and well done. I had meant to reply and suggest something li