[Rcpp-devel] Unit Test Question Was: pnorm/qnorm?

Dirk Eddelbuettel edd at debian.org
Thu Sep 13 02:32:13 CEST 2012


On 13 September 2012 at 08:24, Darren Cook wrote:
| > You didn't show the 10 lines.  I've looked these over
| > many times, but I didn't get it until just now.  If anybody
| > else cares, here are the 3 that really matter...
| > 
| > PREFIX/lib64/R/library/Rcpp/include/Rcpp/stats/norm.h
| > 106:RCPP_DPQ_0(norm, Rcpp::stats::dnorm_0, Rcpp::stats::pnorm_0,
| > Rcpp::stats::qnorm_0 )
| > 107:RCPP_DPQ_1(norm, Rcpp::stats::dnorm_1, Rcpp::stats::pnorm_1,
| > Rcpp::stats::qnorm_1 )
| > 108:RCPP_DPQ_2(norm, ::Rf_dnorm4, ::Rf_pnorm5, ::Rf_qnorm5 )
| > 
| > To see what is going on, take a look at the combination of
| > pre-processor macro and C++ template code (AKA magic pixie dust) in
| > PREFIX/lib64/R/library/Rcpp/include/Rcpp/stats/dpq/dpq.h
| 
| If this was StackOverflow, that would definitely get my upvote. The Rcpp
| sugar code is jolly hard to work through.

So what? This is not needed if you "merely" want to use it.

Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com  


More information about the Rcpp-devel mailing list