-
-
Notifications
You must be signed in to change notification settings - Fork 487
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
Avoid nfinit while factoring polynomials #10910
Comments
Author: Luis Felipe Tabera Alonso |
This comment has been minimized.
This comment has been minimized.
comment:3
Minor edit of grammer. |
comment:4
The patch applied to sage-4.7.rc2 causes the following test to fail:
|
comment:5
Just for the record, my patch introduces the following problem, so I need to add a doctest to it since it is an unapparent side effect.
|
comment:6
I have tracked the latest problem and it is in fact a bug in pari. See upstream report I have corrected some errors in the code and added another doctest. I am unable to reproduce the doctest failing that Maria points out on sage-4.7 Note: doctest with this patch will fail until the pari bug is solved. |
Upstream: Reported upstream. Little or no feedback. |
Work Issues: pari bug #1207 |
Changed upstream from Reported upstream. Little or no feedback. to Reported upstream. Developers acknowledge bug. |
comment:8
The problem with pari is solved in the last stable release. This ticket now depends on #11130 until pari is not updated the patch is not safe. |
Dependencies: #11130 |
Changed upstream from Reported upstream. Developers acknowledge bug. to Fixed upstream, in a later stable release. |
Attachment: factor_nfinit_free.patch.gz the good one |
comment:9
Rebase against 4.7.1 |
Changed keywords from factorization, pari, nfinit to factorization, pari, nfinit, sd32 |
This comment has been minimized.
This comment has been minimized.
comment:12
This ticked should be closed as a duplicate of #11890 |
Changed author from Luis Felipe Tabera Alonso to none |
Reviewer: Luis Felipe Tabera Alonso |
Changed work issues from pari bug #1207 to none |
In previous versions of pari the options to factor a univariate polynomial over a number field were Trager's or Van Hoeij modular algorithm. The second method is the preferred one, but it used to need a nf structure.
Hence Sage computed nfinit on the number field before factoring the polynomial via Pari.
With current pari version the whole nf structure is not needed. So, the factor routines should not call nfinit that can be a very expensive operation for large fields.
The patch modifies the factor method. If the nf structure is already computed we use it, as it will be faster. If the nf structure is not already computed then do not compute it to factor the polynomial.
See also #11890 for a slightly different solution to the same issue.
Depends on #11130
Upstream: Fixed upstream, in a later stable release.
Component: number fields
Keywords: factorization, pari, nfinit, sd32
Reviewer: Luis Felipe Tabera Alonso
Issue created by migration from https://trac.sagemath.org/ticket/10910
The text was updated successfully, but these errors were encountered: