Re: [Rcpp-devel] Rcpp Parallel and Rcpp Armadillo

2014-12-09 Thread Dirk Eddelbuettel
On 9 December 2014 at 09:46, Qiang Kou wrote: | What do you mean by "doesn't work" ? Compiling error or the result is not | right? | | I just tried the code, and it seems the code can compile and work. I am generally very careful about calling back to anything related to R from functions to be p

Re: [Rcpp-devel] Rcpp Parallel and Rcpp Armadillo

2014-12-09 Thread Qiang Kou
What do you mean by "doesn't work" ? Compiling error or the result is not right? I just tried the code, and it seems the code can compile and work. Best, KK On Tue, Dec 9, 2014 at 6:33 AM, Maxime To wrote: > Hi, > > I started to work with Rcpp and I have some trouble to adapt some code. I > c

[Rcpp-devel] Rcpp Parallel and Rcpp Armadillo

2014-12-09 Thread Maxime To
Hi, I started to work with Rcpp and I have some trouble to adapt some code. I copy below the following code: - I want to write a function named contrib1, that is simplified version here, but the idea is that that function makes a large use of the pnorm (and qnorm) on marices and I would like t