Re: [Rcpp-devel] template functions with Rcpp

2015-05-02 Thread daniel castro
y map the opaque SEXP type to the appropriate Rcpp type > (or otherwise) > > Hope this helps, > Kevin > > On Friday, May 1, 2015, daniel castro wrote: > > Hello, > > > > I'm trying to build a function that calculates (for example) the log > > of all ele

[Rcpp-devel] template functions with Rcpp

2015-05-01 Thread daniel castro
Hello, I'm trying to build a function that calculates (for example) the log of all elements of a container. I want this container to be a vector, a Rcpp::numericVector , or perhaps a arama::colvec , so I'm trying with templates ,and it compiles without the // [[Rcpp::export]] part, but when I put