-
-
Notifications
You must be signed in to change notification settings - Fork 552
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
Convenience syntax for quaternion ideals #32264
Comments
comment:2
After #31582 is merged, the way to make addition work for ideals is probably to implement the single-underscore method |
comment:3
I now see that you also implemented a parent for quaternion ideals. I hope that this can somehow be combined with the changes made in #31582, but it seems to be a little bit less straightforward than I thought. |
comment:5
I think I successfully rebased this on top of your changes. By the way, I couldn't get |
comment:6
Looks good. Multiplication doesn't seem to work yet when putting an order on the right, though:
Also, do you know if the two lines |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:8
Thanks, good catch. Both fixed. (I think I first defined one of the |
Reviewer: Peter Bruin |
comment:9
Thanks! Positive review modulo #32245, which I guess someone else will have to review. |
comment:11
Setting milestone to 9.6 now that 9.5 is out. |
Changed branch from public/more_convenient_quaternion_ideals to |
Currently (sage 9.3), quaternion ideals do not support some of the operations one may expect them to:
I
on the left by an elementa
by writinga*I
throws aTypeError
.I
on the right by an elementa
by writingI*a
throws anAttributeError
(this seems to be because the_scale
method was renamed toscale
at some point).I
andJ
by writingI+J
"works", but it returns a generic Twosided Ideal (which, by the way, is usually incorrect) rather than a quaternion ideal.O
by writinga*O
orO*a
throws aNotImplementedError
.This patch makes all of these things work. There's a good chance I messed up something with respect to sage's coercion system though, so I am hoping for someone to educate me on this matter.
As a side note, given the issue with the implementation of
+
inherited from generic ideals, I'm not sure we should be deriving quaternion ideals from the generic ideal class in the first place.Depends on #32245
Component: algebra
Keywords: quaternion ideals
Author: Lorenz Panny
Branch/Commit:
eef228d
Reviewer: Peter Bruin
Issue created by migration from https://trac.sagemath.org/ticket/32264
The text was updated successfully, but these errors were encountered: