Skip to content

Combinatorial Iterators not working parallel #26

@elephann

Description

@elephann

I was working a full search of Combinatorial caculation, the population about 4000, and I want to find 2 or 3 Combinatorial that satisfy certain condition. I thought RcppAlgos might help, but when I parallel , it not working!
example:
select_n_shr=2
shrs=1:4000
itc <- comboIter(shrs, select_n_shr)

AllPairs <- foreach(i = itc, .packages = c("data.table","urca","vars"), .combine = 'rbind') %dopar% {
print(i)}
the output:

AllPairs
[1] 1 2

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions