Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

29 results for “from:Alessandro Mammana”

[Rcpp-devel] Default empty values for vector and matrices
Alessandro Mammana · Feb 17, 2014 · rcpp-devel

Dear all, I am trying to write an Rcpp function that accepts optionally a vector, but I cannot figure out what default value I should give to it. First I tried the following: // [[Rcpp::export]] int nilVec(NumericVector v = R...

[Rcpp-devel] Some beginner questions
Alessandro Mammana · Nov 24, 2013 · rcpp-devel

Dear all, I had some problems figuring out how to write some code for iterating through the values of a run-length-encoded factor (Rle). Now I kind of made it work, but I am not sure that the codes...

[Rcpp-devel] Problems wrapping stl::vector<int>
Alessandro Mammana · Jan 3, 2014 · rcpp-devel

Thanks a lot, it works! I thought I tried to return the variable a directly without template specialization but apparently I didn't T.T However I tried this: IntegerVector x = wrap(a); and it still didn't work... I...

[Rcpp-devel] Interfacing Rcpp with a C library: memory allocation
Alessandro Mammana · Nov 20, 2013 · rcpp-devel

Thanks a lot for your help, I'll look at the references. I saw Section 6.1.2 already. Does that mean that I should replace all the calls to malloc() and to free() with those to Calloc() and Free...

[Rcpp-devel] Error when handling default values
Alessandro Mammana · Feb 3, 2014 · rcpp-devel

Hi all, once again I have a bug and no idea what I am doing wrong. I started to handle optional arguments directly at the C++ level, so that I don't have to write a wrapper function in R...

[Rcpp-devel] Problems wrapping stl::vector<int>
Alessandro Mammana · Jan 3, 2014 · rcpp-devel

Dear all, thank you again for this fantastic library. Sorry for the very stupid question, I looked before posting, but I couldn't find anything. I am encountering a problem when I try to do something very basic: I am...

[Rcpp-devel] Extending Rcpp with a dummy class
Alessandro Mammana · Feb 14, 2014 · rcpp-devel

Thanks a lot, I misunderstood the document http://cran.r-project.org/web/packages/Rcpp/vignettes/Rcpp-extending.pdf . But there is still a problem when I try to use these classes definitions in a package. If these classes are...

[Rcpp-devel] Sharing Cpp code between packages
Alessandro Mammana · May 20, 2014 · rcpp-devel

My bad, I forgot to call the compileAttributes function... T.T Everything works fine!!! Yes, I don't need object code. "tweak the Makevars", I meant in package P, because now the files are not in src/ anymore, but I...

[Rcpp-devel] Interfacing Rcpp with a C library: memory allocation
Alessandro Mammana · Nov 21, 2013 · rcpp-devel

I found out what the problem was, luckily it was just a stupid bug in my code (an array index out of bounds). I still didn't quite get how memory allocation works. As far as I understood there are...

Can't find what you're looking for? Try searching with Google .