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
faster coercion from Integer to Quadratic Number fields #14563
Comments
comment:3
There is a block of commented-out code under
If its not used then delete it, don't leave commented-out chunks of code lying around. Is there a performance difference with this branch removed? It looks like an attempt to deliberately circumvent the morphism to me. |
comment:4
Thanks for having a look. I commented the code because it was never used because of the coercion system (see the Here are some timings, the improvement is somwhere around x10. without
with
There is no difference for the multiplication because the methods |
comment:5
Attachment: trac_14563-Z_to_quadratic_field.patch.gz Looks good to me... |
Reviewer: Volker Braun |
Changed author from vdelecroix to Vincent Delecroix |
Merged: sage-5.12.beta1 |
As suggested in this thread on sage-devel, the patch implements a faster coercion from the integers to quadratic number fields.
To avoid rebase I put dependencies on #13213 and #13256.
Depends on #13213
Depends on #13256
Component: coercion
Keywords: quadratic number field
Author: Vincent Delecroix
Reviewer: Volker Braun
Merged: sage-5.12.beta1
Issue created by migration from https://trac.sagemath.org/ticket/14563
The text was updated successfully, but these errors were encountered: