Message-ID: <9F0721FDD4F12D4B95AD894274F388EC020C63F0FDFD@DJFEXMBX01.djf.agrsci.dk>
Date: 2011-10-16T12:21:10Z
From: Søren Højsgaard
Subject: multicore combn
In-Reply-To: <1318728353561-3908633.post@n4.nabble.com>
Just thought I'd let you know the following: In the gRbase package there is a function called combnPrim which does the same as combn but it is implemented in C - and is quite a bit faster than combn().
Regards
S?ren
________________________________________
Fra: r-help-bounces at r-project.org [r-help-bounces at r-project.org] På vegne af jebyrnes [byrnes at msi.ucsb.edu]
Sendt: 16. oktober 2011 03:25
Til: r-help at r-project.org
Emne: [R] multicore combn
This is a 'rather than re-invent the wheel' post. Has anyone out there
re-written combn so that it can be parallelized - with multicore, snow, or
otherwise? I have a job that requires large numbers of combinations, and
rather than get all of the index values, then crank it through mclapply, I
was wondering if there was a way to just do this natively within a function.
Just curious. Thanks!
-Jarrett
--
View this message in context: http://r.789695.n4.nabble.com/multicore-combn-tp3908633p3908633.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.