-
-
Notifications
You must be signed in to change notification settings - Fork 584
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
pointless computations when converting number field elements #12270
Comments
comment:1
I'm a but confused. Exactly where and when are roots unneccessarily computed? |
comment:2
Replying to @jdemeyer:
In
are independent. The first can be very slow, while the second is likely to fail. So I propose to swap these two parts. |
This comment has been minimized.
This comment has been minimized.
comment:3
Thanks for the clarification. I agree. |
This comment has been minimized.
This comment has been minimized.
Changed keywords from none to sd51 |
swaps the order of the two processes |
Attachment: trac_12270_swap_processes.patch.gz fixes an error that came up in testing |
comment:8
Attachment: trac_12270_doc_fix.patch.gz Sorry, newbie error, I did hg_commit() before I had tested the patch, hence there being two patches. |
Branch: u/davidloeffler/ticket/12270 |
Reviewer: David Loeffler |
comment:11
Does what it says on the tin. Positive review. |
Author: Jenny Cooley |
Merged: sage-5.12.beta0 |
In
/sage/rings/number_field/number_field.py
(as per #11869), when converting number field elements, the partsare independent. The first can be very slow, while the second is likely to fail. So I propose to swap these two parts.
See #12269 for an example and for indicator code.
CC: @jdemeyer @dansme @sagetrac-JCooley
Component: number fields
Keywords: sd51
Author: Jenny Cooley
Branch: u/davidloeffler/ticket/12270
Reviewer: David Loeffler
Merged: sage-5.12.beta0
Issue created by migration from https://trac.sagemath.org/ticket/12270
The text was updated successfully, but these errors were encountered: