[Rcpp-devel] parallel distance matrix calculation

2014-07-11 Thread James Bullard
Hi All, I'm attempting to paralellize some Rcpp code I have now, but I'm having a hard time understanding the best route for this. I'm looking for some guidance about how things need to be restructured to take advantage of the parallelFor (if that would be the speediest option). I have the follow

[Rcpp-devel] parallel distance matrix calculation

2014-07-11 Thread James Bullard
Sorry, this is a continuation of my previous email, I've just learned a new gmail keybinding for accidentally sending ... My questions are: - is it right to parallelize the outer loop versus doing a parallelReduce on the kl_divergence function? - is there a row iterator which returns NumericVector