> 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.

Darren


-- 
Darren Cook, Software Researcher/Developer

http://dcook.org/work/ (About me and my work)
http://dcook.org/blogs.html (My blogs and articles)
_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to