-
-
Notifications
You must be signed in to change notification settings - Fork 485
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
provide a class for partitions with bounded length and minimal part #38904
base: develop
Are you sure you want to change the base?
Conversation
Documentation preview for this PR (built with commit 4f42af7; changes) is ready! 🎉 |
@fchapoton, could you please have a look so it doesn't rot away? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok. Please avoid doing a lot of cleanup work in this kind of ticket.
Thank you! Sorry, I couldn't resist. |
Dear @fchapoton, I would like to put this back to "needs work", because it doesn't quite solve Max' issue, and it's not hard to do that, but I'd like to avoid deprecation of something I just introduced. Is this OK with you or would you prefer if I open a new pull request? Ideally, I think there should be a single class for partitions of |
and generalize it to handle also max_part
This is now much better. Almost all the time is now spent in I'm open for a better name for the class |
I find it a bit frustrating that we do not need the Failing that, it seems that most of the time is spent in |
The solution was very simple, so I implemented it. Max' problem is still much better solved without using |
@tscrim, there seems to be a problem with sage/src/sage/algebras/quantum_groups/fock_space.py Lines 1734 to 1759 in 39ebbe4
|
Yes, that is not correct. It should be over all partitions of length |
… PartitionsInBox accessible
OK, I made a catch-all class for partitions which are not restricted by size. This can easily be improved, but I'd prefer to postpone this. |
@fchapoton, is the lint error in error? Other than that, I think that the pull request should be ready to go. |
somebody should add PLC0206 to the ruff-minimal ignore list in another pull request DONE; please review #39021 |
We provide a new class,
PartitionsSmallestGE
to handle subsets of the constraintslength
,min_length
,max_length
andmin_part
, to make cardinality computations with such constraints reasonable.Fixes #38897