-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
Speed up generation of random number field elements #8007
Comments
comment:1
I should comment that it's actually not too hard to understand why this still isn't fast enough to beat the code on #3436. A large part of the problem is that we still represent elements of number fields by NTL polynomials -- the lion's share of the difference comes down to the fact that we end up doing several copies of data back and forth between NTL |
comment:2
Looks good, just needs some fixes due to random number generation changes:
|
comment:3
Cool, fixed. New patch attached. (Amusingly, the |
comment:4
Attachment: trac_8007.patch.gz Needs to be rebased against 4.3.2... |
Attachment: trac_8007_rebase.patch.gz |
comment:5
Done. |
Reviewer: David Roe |
comment:6
All tests pass, code looks good. |
Merged: sage-4.3.3.alpha1 |
comment:7
Merged trac_8007_rebase.patch. |
In the process of looking at #3436, I noticed that generation of random number field elements was slow. I was hoping that speeding it up would make it fast enough that we could use a "generic" algorithm for generating matrices over cyclotomic fields. I did get a 100-150X speedup for generating random elements of number fields, but amazingly, this still wasn't quite fast enough to beat the more "quick and dirty" approaches for cyclotomic matrices. However, I think this code is probably still worth merging.
CC: @williamstein @boothby @sagetrac-spancratz
Component: number fields
Author: Craig Citro
Reviewer: David Roe
Merged: sage-4.3.3.alpha1
Issue created by migration from https://trac.sagemath.org/ticket/8007
The text was updated successfully, but these errors were encountered: