-
-
Notifications
You must be signed in to change notification settings - Fork 559
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
Implement MatrixSpace(...)['x'] #8389
Comments
This comment has been minimized.
This comment has been minimized.
comment:2
The problem's not in the polynomial ring constructor per se:
Almost nothing works with R because printing of elements is broken, but at least you can construct it! The problem reported above lies in the
|
Author: Michael Orlitzky |
comment:3
This is fixed, probably by #10470. I've added a doctest in the parent list() method; hopefully that is the proper place for it. |
Attachment: sage-trac_8389.patch.gz Add a doctest to the parent list() method. |
comment:4
I was about to give this positive review, but after reading comment:2 I wonder. Are we just hiding a bug here? In which case this ticket could just be changed to either raising a |
comment:5
Replying to @kcrisman:
This is "easy" to do for one variable by overriding But ideally, we would want to offer the same interface that we do when constructing polynomial rings from other rings or fields. Does constructing a polynomial ring over matrix spaces even make sense mathematically? All of the existing code to do this is in |
comment:6
In any case, I think that this is at least 'needs info' until we decide what to do. It's not as high priority as it once was since it just raises an error instead of bringing the computer to a crashing halt! |
comment:7
There is (a duplicate) #10608 which has a patch that gives However what I'm thinking as a solution is that any parent in the category of |
comment:9
Replying to @tscrim:
In principle, I agree. Unfortunately, matrix spaces currently do not use the category framework by default (one needs to call And I'm honestly at lost as to how to use the category framework with fundamental, widely used parents. In our case, it would make sense (despite the issue with matrix rings) to move the definition of (On the top of that, there is a hack in |
Commit: |
Changed author from Michael Orlitzky to Marc Mezzarobba |
This comment has been minimized.
This comment has been minimized.
comment:11
Ok, after talking with Nicolas I think I understand better what is going on and what should be done. Here is an attempt to streamline the implementation of I didn't leave a version New commits:
|
Branch: u/mmezzarobba/8389-ring_getitem |
comment:12
Hi Mark! I went through the changes, and overall it looks good! Thanks so much for the cleanup! Some tiny remarks / suggestions:
By the way: shall we use the occasion to also move Speaking of this method: its documentation says "Create a polynomial or power series ring over Cheers, |
comment:13
Thanks for your review! Replying to @nthiery:
No, that was on purpose: the TODO was part of the SEEALSO block. But I added the missing cross-references and removed the TODO line altogether. (I'll push the new commit in a moment.)
No idea, I didn't touch this part
Same thing here.
I believe
What method are you talking about? Thanks again, Marc |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:16
Replying to @mezzarobba:
Ok. I double checked your changes and am happy with them!
Fair enough :-) Do you mind creating a ticket for this task?
Sorry, I confused myself with Ring.getitem from another branch ... Btw: what do you think we should do with IntegerRing.getitem which Cheers, |
comment:17
Replying to @nthiery:
Done (#15885).
For now yes. Can you please set the ticket to positive review if you are happy with it? |
comment:18
Replying to @mezzarobba:
Thanks!
Ok.
Done! |
comment:20
Oh, by the way, should this be a defect fix or an enhancement? |
Reviewer: Nicolas M. Thiéry |
Changed branch from u/mmezzarobba/8389-ring_getitem to |
...and rationalize the implementation of
__getitem__
for rings.CC: @orlitzky @nthiery
Component: algebra
Author: Marc Mezzarobba
Branch/Commit:
f4abe5d
Reviewer: Nicolas M. Thiéry
Issue created by migration from https://trac.sagemath.org/ticket/8389
The text was updated successfully, but these errors were encountered: