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

2014-12-10 Thread Dirk Eddelbuettel
omain François" | Envoyé : ‎10/‎12/‎2014 14:32 | À : "Maxime To" | Cc : "Dirk Eddelbuettel" ; "[email protected]" | Objet : Re: [Rcpp-devel] Rcpp Parallel and Rcpp Armadillo | | Some pointers. | | | When you use an arma::mat passed by valu

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

2014-12-10 Thread Maxime To
- > Date: Tue, 9 Dec 2014 09:07:10 -0600 > To: [email protected] > CC: [email protected]; [email protected] > Subject: Re: [Rcpp-devel] Rcpp Parallel and Rcpp Armadillo > From: [email protected] > > > On 9 December 2014 at 09:46, Qi

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

2014-12-10 Thread Romain François
s = test; > > return results; > } > > -------------- > > > Date: Tue, 9 Dec 2014 09:07:10 -0600 > > To: [email protected] <mailto:[email protected]> > > CC: [email protected] <mailto:[email protected]

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

2014-12-10 Thread Maxime To
ue, 9 Dec 2014 09:07:10 -0600 > To: [email protected] > CC: [email protected]; [email protected] > Subject: Re: [Rcpp-devel] Rcpp Parallel and Rcpp Armadillo > From: [email protected] > > > On 9 December 2014 at 09:46, Qiang Kou wrote: > | What do you me

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