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
needless quadratic time code in number_field.py #22681
Comments
Branch: u/chapoton/22681 |
Commit: |
Author: Frédéric Chapoton |
New commits:
|
comment:2
Salut Frédéric, If you don't care about multiplicity you can use
(which would be cleaner than calling |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:5
Salut. Merci pour la suggestion. C'est fait. |
comment:6
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:8
ok, j'ai changé le test, après avoir vérifié que c'etait simplement un ordre different. |
comment:9
The order is also different with this new version...
You can for example replace with
(however it would be interesting to investigate why it is different each time now...) |
comment:11
I made a better doctest |
comment:12
good! |
Reviewer: Vincent Delecroix |
Changed branch from u/chapoton/22681 to |
sage/src/sage/rings/number_field
contains the following loop:Line 7297 should read
r = v[i][0]
.This actually leads to a huge speed-up.
Component: number fields
Author: Frédéric Chapoton
Branch/Commit:
43d2b98
Reviewer: Vincent Delecroix
Issue created by migration from https://trac.sagemath.org/ticket/22681
The text was updated successfully, but these errors were encountered: