-
-
Notifications
You must be signed in to change notification settings - Fork 618
Argument regular=
makes Partitions(...)
silently ignore other arguments
#39107
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
Comments
@mantepse: That's better and somewhat fixes the issue in the original code example. However, the new
Note that it always allows combining Hence, from reading this I'd expect the following modified example work |
Or am I misreading the docs? The other potential meaning may be as follows:
If that's the intended meaning, then the docs wording needs to be improved (eg. like I suggest above). PS. And even here the "both keywords" case is not actually forbidden to the docs contrary:
|
sagemathgh-38904: provide a class for partitions with bounded length and minimal part We provide a new class, `PartitionsSmallestGE` to handle subsets of the constraints `length`, `min_length`, `max_length` and `min_part`, to make cardinality computations with such constraints reasonable. Fixes sagemath#38897, sagemath#39107 URL: sagemath#38904 Reported by: Martin Rubey Reviewer(s): Frédéric Chapoton, Martin Rubey, Travis Scrimshaw
sagemathgh-38904: provide a class for partitions with bounded length and minimal part We provide a new class, `PartitionsSmallestGE` to handle subsets of the constraints `length`, `min_length`, `max_length` and `min_part`, to make cardinality computations with such constraints reasonable. Fixes sagemath#38897, sagemath#39107 URL: sagemath#38904 Reported by: Martin Rubey Reviewer(s): Frédéric Chapoton, Martin Rubey, Travis Scrimshaw
sagemathgh-38904: provide a class for partitions with bounded length and minimal part We provide a new class, `PartitionsSmallestGE` to handle subsets of the constraints `length`, `min_length`, `max_length` and `min_part`, to make cardinality computations with such constraints reasonable. Fixes sagemath#38897, sagemath#39107 URL: sagemath#38904 Reported by: Martin Rubey Reviewer(s): Frédéric Chapoton, Martin Rubey, Travis Scrimshaw
sagemathgh-38904: provide a class for partitions with bounded length and minimal part We provide a new class, `PartitionsSmallestGE` to handle subsets of the constraints `length`, `min_length`, `max_length` and `min_part`, to make cardinality computations with such constraints reasonable. Fixes sagemath#38897, sagemath#39107 URL: sagemath#38904 Reported by: Martin Rubey Reviewer(s): Frédéric Chapoton, Martin Rubey, Travis Scrimshaw
sagemathgh-38904: provide a class for partitions with bounded length and minimal part We provide a new class, `PartitionsSmallestGE` to handle subsets of the constraints `length`, `min_length`, `max_length` and `min_part`, to make cardinality computations with such constraints reasonable. Fixes sagemath#38897, sagemath#39107 URL: sagemath#38904 Reported by: Martin Rubey Reviewer(s): Frédéric Chapoton, Martin Rubey, Travis Scrimshaw
Uh oh!
There was an error while loading. Please reload this page.
Steps To Reproduce
Consider the code:
Expected Behavior
When in addition to
length=8,max_part=5
we specifyregular=5
we expect to see the cardinality at most 33, but we get a larger cardinality of 950.Actual Behavior
Partitions(24,length=8,max_part=5,regular=5)
seems to ignorelength=8,max_part=5
and to produce the same result asPartitions(24,regular=5)
.Additional Information
No response
Environment
Checklist
The text was updated successfully, but these errors were encountered: