Re: [Rcpp-devel] RCppParallel Example Crashing R (Cross-Post from SO)

2014-11-23 Thread Yixuan Qiu
Great! Glad to see that it works and has perceivable speed-up. Best, Yixuan On Nov 23, 2014 10:57 PM, "Justace Clutter" wrote: > I would say that was it... Thanks for catching that. Sometimes the > smallest thing can get you. I have updated the SO question with the answer. > > Now that I got

Re: [Rcpp-devel] RCppParallel Example Crashing R (Cross-Post from SO)

2014-11-23 Thread Justace Clutter
I would say that was it... Thanks for catching that. Sometimes the smallest thing can get you. I have updated the SO question with the answer. Now that I got this working I am seeing great speed improvements: b1 = R native code b2 = Rcpp non parallel b3 = Rcpp parallel test replications ela

Re: [Rcpp-devel] RCppParallel Example Crashing R (Cross-Post from SO)

2014-11-23 Thread Yixuan Qiu
Hello Justace, It seems that you should write down j < end rather than j <= end. Best, Yixuan 2014-11-23 21:10 GMT-05:00 Justace Clutter : > I posted the following to SO earlier this morning and it was suggested > that I repost this question to the rcpp-devel list for exposure. For > reference

[Rcpp-devel] RCppParallel Example Crashing R (Cross-Post from SO)

2014-11-23 Thread Justace Clutter
I posted the following to SO earlier this morning and it was suggested that I repost this question to the rcpp-devel list for exposure. For reference, the original posting is at http://stackoverflow.com/questions/27089888/rcppparallel-example-crashing-r. I have been trying to parallelize one of m