Combinatorial Iterators not working parallel

Open
#26 2 comments 0 reactions 1 assignee View on GitHub

@jwood000 is already working on this.

Since Mar 17, 2022.

Assessment

This issue has not been assessed yet.

Description

enhancement

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

Dominant language
C++
Stars
51
Forks
5
Avg merge
6h 13m
Merged PRs (30d)
6

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from jwood000/RcppAlgos

All issues in jwood000/RcppAlgos

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.