Skip to content
Prev 5541 / 10988 Next

[Rcpp-devel] Sample function(s) for inclusion in RcppArmadillo

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>
Message-ID: <CADNH-Ptd3X7D5yNKWsRZ-Bk0EX-+U+S0rNTcc8oMvK7HE3FUhA@mail.gmail.com>
In-Reply-To: <b0b1e542ec7e47fdafaeb7f18e26a1b8@BLUPRD0711HT004.namprd07.prod.outlook.com>