Archive for the ‘Software’ Category

January 22, 2011 Off

foreach. Slow?

By Matthias Templ in Software

Parallelisation on 100 additional knodes is necessary that foreach competites with a usual (very slowly) for() loop.
(recall what this means in respect to polluting our environment by higher energy consumption…)
system.time(x <- foreach(b = bvec, .combine = “cbind”) %:%
foreach(a = avec, .combine = “c”) %dopar% {sim(a, b)})
After having a deeper look at the example it turns [...]

January 22, 2011 0

Rd to tex

By Matthias Templ in Software

To convert Rd file to tex files just write in the console:
R CMD Rdconv –type=latex –output=filename.tex filename.Rd