Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upArgument upper in combo/permuteGeneral does not work under certain constraints #9
Comments
|
The problem code can be traced to RcppAlgos/inst/include/GeneralPartitions.h Line 567 in 6c873a8 Note that this check takes place before: RcppAlgos/inst/include/GeneralPartitions.h Line 570 in 6c873a8 We can easily fix this by refactoring the above. |
|
Corrected by: 5d422fa |
The argument
upperworks properly on standard combinations/permutations however when a constraint is applied and the total number of results exceeds2^31 - 1, it does not have the proper affect. Observe:Working examples:
And now the special case when we have an integer partition set up (i.e.
limitConstraints = 100in the above):