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" ; "rcpp-devel@lists.r-forge.r-project.org" | 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: q...@umail.iu.edu > CC: maxime...@outlook.fr; rcpp-devel@lists.r-forge.r-project.org > Subject: Re: [Rcpp-devel] Rcpp Parallel and Rcpp Armadillo > From: e...@debian.org > > > 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: q...@umail.iu.edu <mailto:q...@umail.iu.edu> > > CC: maxime...@outlook.fr <mailto:maxime...@outlook.f

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

2014-12-10 Thread Maxime To
ue, 9 Dec 2014 09:07:10 -0600 > To: q...@umail.iu.edu > CC: maxime...@outlook.fr; rcpp-devel@lists.r-forge.r-project.org > Subject: Re: [Rcpp-devel] Rcpp Parallel and Rcpp Armadillo > From: e...@debian.org > > > 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