> But your threads,
> be it pthreads or C++11 threads are not calling the RNG supplied by R,
are they?

That is correct. Just reading and writing to c++ vectors (with some non-R
deterministic computations in-between)

Best,
--
Hao Ye
[email protected]

On Mar 11, 2014, at 1:15 PM, Dirk Eddelbuettel <[email protected]> wrote:

>
> On 11 March 2014 at 13:06, Hao Ye wrote:
> | > Just accessing / setting data structures should work (but test
first...),
> | > RNGs is clearly asking for trouble.
> |
> | FWIW, I've been able to get this working using Rcpp and C++11 threads.
(but using native C++ data structures, of course)
>
> Sure, just as there are CRAN packages doing OpenMP with RNGs.  But your
threads,
> be it pthreads or C++11 threads are not calling the RNG supplied by R,
are they?
>
> If so, I'd love to see an example / would invite you to post an Rcpp
Gallery article.
>
> Dirk
>
> --
> Dirk Eddelbuettel | [email protected] | http://dirk.eddelbuettel.com
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to