[Rcpp-devel] Over-loading R functions
rsparapa at mcw.edu
Sun Mar 27 01:11:07 CET 2016
On 3/26/16, 5:38 PM, "Dirk Eddelbuettel" <edd at debian.org> wrote:
>Happy Easter to you too. I don't understand your point, I am afraid. If
>think you need an rnorm variant with vector arguments for mean and sd, why
>don't you just write one, as you did here, and release it as a package?
>understand you, this is to solve an apparent issue at the R level,
I might do that. But, its not the R level since those features already
I¹m just mimicking them at the C++ level. The R transcript was a proof of
concept to make sure this was actually doable.
>I really do not see how that __fits into them mission of giving a simple
>useful mechanism__ for access the R RNGs accessible via the R C API. I am
>probably missing something here.
Well, it might be relevant to other functions, but as you have guessed it
mainly an issue with RNGs.
>In case you want a C(++) level to vector argument mean and sd, you can do
>exactly the same but at a different layer. Nobody is stopping you, but as
>nobody but you seem to think this is missing in Rcpp nobody but you is
>to work on it either.
Well, like I said, someone else did ask me why it was missing. And
others have wondered as well. Anyways, it is trivial to fix as I¹ve shown.
I¹m wondering if these can be generated via the pre-processor since they
rather simple. If I make any progress, maybe it would be worth a Gallery
More information about the Rcpp-devel