Skip to content
Prev 256484 / 398502 Next

Comparing execution times

Just a comment about your use of foreach:
On Mon, Apr 11, 2011 at 6:29 AM, Alaios <alaios at yahoo.com> wrote:
[snip]
You are still running this sequentially.

To run in parallel, you need load the appropriate parallel backend,
and use %dopar%:

library(doMC)
foreach(i=1:dimz) %dopar% { ... }