-
-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OrderedSetPartitions() fails for the empty set #35654
Comments
5 tasks
vbraun
pushed a commit
that referenced
this issue
Jun 3, 2023
### 📚 Description The function `multiset_permutation_next_lex` was wrong on empty input and is fixed in this PR. Fixes #35654 ### 📝 Checklist - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [x] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. URL: #35700 Reported by: Vincent Delecroix Reviewer(s): Frédéric Chapoton
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
Did you read the documentation and troubleshoot guide?
Environment
Steps To Reproduce
OrderedSetPartitions()
well supports parts of zero size.For example,
OrderedSetPartitions({1,2},[1,1,0,0]).list()
gives:However, it does not work when the input set is empty.
Expected Behavior
For example, calling
OrderedSetPartitions(set(),[0,0,0]).list()
should produce the partition of the empty set into empty (sub)sets:Actual Behavior
However, at the moment it results in the error:
Additional Information
No response
The text was updated successfully, but these errors were encountered: