You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PlanePartitions silently ignores the symmetry keyword when the first argument is an integer:
sage: [PlanePartitions(n, symmetry="TSSCPP").cardinality() for n in range(15)]
[1, 1, 3, 6, 13, 24, 48, 86, 160, 282, 500, 859, 1479, 2485, 4167]
sage: oeis(_)
0: A000219: Number of planar partitions (or plane partitions) of n.
For TSSCPP this is particularly puzzling, since in this case, the box must be a cube, so we would have to do
sage: [PlanePartitions([n,n,n], symmetry="TSSCPP").cardinality() for n in range(0,15,2)]
[1, 1, 2, 7, 42, 429, 7436, 218348]
instead. As a side note, it would be more useful if PlanePartitions(3, symmetry="TSSCPP").cardinality() would return zero instead of raising an error.
Expected Behavior
I would expect
sage: [PlanePartitions(n, symmetry="TSSCPP").cardinality() for n in range(15)]
[1, 0, 1, 0, 2, 0, 7, 0, 42, 0, 429, 0, 7436, 0, 218348]
Actual Behavior
sage: [PlanePartitions(n, symmetry="TSSCPP").cardinality() for n in range(15)]
[1, 1, 3, 6, 13, 24, 48, 86, 160, 282, 500, 859, 1479, 2485, 4167]
Additional Information
No response
Environment
irrelevant
Checklist
I have searched the existing issues for a bug report that matches the one I want to file, without success.
I have read the documentation and troubleshoot guide
The text was updated successfully, but these errors were encountered:
…gemath#36116
* Fix a thinko in the iterator for TSSCPP
* make plane partitions hashable
* avoid rational numbers in the cardinality methods, when necessary
* raise an error when an integer and a symmetry is provided as argument
to `PlanePartitions`
Fixessagemath#36119Fixessagemath#36118Fixessagemath#36116
- [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.
URL: sagemath#36124
Reported by: Martin Rubey
Reviewer(s): Frédéric Chapoton
Steps To Reproduce
PlanePartitions
silently ignores thesymmetry
keyword when the first argument is an integer:For
TSSCPP
this is particularly puzzling, since in this case, the box must be a cube, so we would have to doinstead. As a side note, it would be more useful if
PlanePartitions(3, symmetry="TSSCPP").cardinality()
would return zero instead of raising an error.Expected Behavior
I would expect
Actual Behavior
Additional Information
No response
Environment
Checklist
The text was updated successfully, but these errors were encountered: