-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
use FLINT to speed up Chebyshev T polynomial creation #16812
Comments
Commit: |
Changed keywords from none to flint, speedup |
comment:3
Documentation is missing:
|
comment:4
Also the obvious question: can this be made to work also for |
comment:5
I think the conditions
Point 2 and 3 could be supported by first computing the polynomial in |
comment:6
Why does flint_arith.chebyshev_T create an fmpz_poly, convert it to an array of ZZs, and then convert it back to a polynomial? Over ZZ[x], the roundtrip is probably more expensive than the actual computation. It should be enough to create a new Polynomial_integer_dense_flint instance and apply arith_chebyshev_t to its |
comment:8
Replying to @fredrik-johansson:
Well, I tried that but needed to cast
the function I will now add a member function |
comment:9
Putting a method on Polynomial_integer_dense_flint sounds like the easiest way to do it. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:12
Replying to @jdemeyer:
I have implemented this now and see no reason for the restriction in (2) to characteristic 0, as it seems to me that changing the base ring to, e.g., a finite field works nicely too. In the process I uncovered at least two bugs. I have removed the padics doctest for the moment because it was evaluated using the new FLINT code and the subsequent substitution was a bit too much. In this case the recursive evaulation is actually faster. But I have no idea at the moment when to select which algorithm, in order to not to fall in this trap. |
comment:15
Replying to @rwst:
needs_work for exactly this reason. |
comment:41
I fixed your doctest. Let's see what the reviewer/s say. New commits:
|
comment:42
|
Dependencies: #17531 |
comment:44
It maybe better to just make the Chebys |
comment:45
While other orthogonal polynomial functions (as well as almost all other symbolic functions) are simply |
Changed commit from |
comment:46
We will convert the Chebyshevs to |
Changed branch from u/rws/use_flint_to_speed_up_chebyshev_t_polynomial_creation to none |
Branch: u/rws/16812 |
Commit: |
New commits:
|
comment:50
Branch sems corrupt. |
In #16670 the superiority of FLINT for creation of big Chebyshev-T-polynomials was confirmed. At T_10000 the speedup is already about 50x versus the present implementation. The issue is outsourced to this ticket.
Depends on #24554
Depends on #24668
Component: symbolics
Keywords: flint, speedup
Author: Ralf Stephan
Branch/Commit: u/rws/16812 @
d7a055d
Issue created by migration from https://trac.sagemath.org/ticket/16812
The text was updated successfully, but these errors were encountered: