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
q-numbers coutings flags stable under a nilpotent endomorphism #13640
Comments
Author: caruso |
This comment has been minimized.
This comment has been minimized.
Work Issues: doctest, cached_function |
comment:3
|
comment:4
Replying to @fchapoton:
The main problem is that lists are not hashable. Therefore a cached function can't take a list as an argument and, consequently, I can't use the decorator I propose another implementation (using |
comment:5
Thinking again about this, it now seems to me that q_jordan should be a method of the class Partitions. This is really the job of a partition constructor to check that something is a partition. Maybe this would also solve the hash problem ? |
comment:6
Ok. I attach a third implementation where q_jordan is a method of Partition. It works but it's quite slow. (I suspect a problem with |
comment:7
Replying to @fchapoton:
Sorry I did not comment earlier; the network at the airport was crappy. It would certainly be natural for the input to q_jordan to be a partition, and it should indeed fix the problem. That being said, this does not necessarily imply that q_jordan should be a method of partitions. It might be more natural to put instead q_jordan with the other q-analogues, as a function taking a partition as input. I let you judge which option is best. Cheers, |
comment:8
Replying to @xcaruso:
Did you run it with %prun? Among other things, it will tell you how many times the method is called, from which you can check whether the cache works. Ah, in this situation, you probably want to use Cheers, |
comment:9
apply trac_13640_qjordan-4.patch ok, here is a new variant. Still slow, I am afraid. |
comment:10
apply trac_13640_qjordan-4.patch here is a new one, thanks to Nicolas comments : with cached_in_parent_method |
comment:12
Replying to @nthiery:
Well, I prefer this. Therefore I propose another new patch with the function q_jordan in q_analogues but taking a Parition as input. (And note that |
comment:13
Replying to @xcaruso:
Sounds good to me.
Yup. |
comment:14
Attachment: trac_13640_qjordan-4.patch.gz apply trac_13640_qjordan-4.patch here is a new patch, not touching partition.py at all this seems ok to me let us wait for the green light |
Reviewer: Frédéric Chapoton |
comment:15
ok, positive review |
This comment has been minimized.
This comment has been minimized.
Changed author from caruso to Xavier Caruso |
Changed work issues from doctest, cached_function to none |
comment:16
I assume the positive review implies that the work issues have been solved? |
comment:17
Yes, indeed. I should have removed them, sorry. |
Merged: sage-5.5.beta2 |
Here is a small patch implementing the function q_jordan which computes the number of complete flags in F_q^n stable under a nilpotent linear endomorphism given by its Jordan type.
This function is used in ticket #13215.
Apply attachment: trac_13640_qjordan-4.patch
Component: combinatorics
Keywords: q-numbers
Author: Xavier Caruso
Reviewer: Frédéric Chapoton
Merged: sage-5.5.beta2
Issue created by migration from https://trac.sagemath.org/ticket/13640
The text was updated successfully, but these errors were encountered: