[Rcpp-devel] Sample function(s) for inclusion in RcppArmadillo
Christian Gunning
xian at unm.edu
Fri Mar 29 06:18:42 CET 2013
Dirk,
See attached for minor edits related to Walker Alias method. Based on
the timing tests from the gallery draft and discussion with Johnathan,
we decided it was a bad idea to include code that deviates from R's
behavior, and is slower than R to boot. Thus, the C++ sample now
throws an informative error under the appropriate conditions. I
updated the unitTests accordingly (and cleaned them up a bit).
Incidentally, there's now a stub in place for Walker Alias method
sample function, as well as an associated unitTest that's now
commented out.
-Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: walker.throw.diff
Type: application/octet-stream
Size: 4455 bytes
Desc: not available
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20130328/aa256cde/attachment.obj>
More information about the Rcpp-devel
mailing list