Re: [Rcpp-devel] Rcpp Parallel is not working

2016-12-22 Thread Serguei Sokol
Hi To, Le 22/12/2016 à 12:55, To Duc Khanh a écrit : Dear all I am trying to apply RcppParallel for my function, but my code seems to be not working. Could you please help me to find any mistakes in my code or explain me why it is not working? As your result is of type "aggregation" (res[0] +=

[Rcpp-devel] Rcpp Parallel is not working

2016-12-22 Thread To Duc Khanh
Dear all I am trying to apply RcppParallel for my function, but my code seems to be not working. Could you please help me to find any mistakes in my code or explain me why it is not working? I include my C/C++ code and R code at the end of this mail. Thank you for the help. // parallel version