- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 588
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
Reimplement elements of Zp and Qp using templates #12555
Comments
Replying to @roed314:
|
comment:3
Now includes capped absolute and fixed modulus elements. There are a few problems remaining:
This version should be enough for Justin to compare the performance of the templated and non-templated versions. I'm now going to create another patch on top of this which removes the untemplated versions. |
This comment has been minimized.
This comment has been minimized.
Attachment: 12555.patch.gz Still some bugs, but it should be useable to compare timings |
I've fixed all known bugs; currently doctesting |
Attachment: 12555_2.patch.gz Attachment: 12555_printing.patch.gz |
Attachment: 12555_remove_base_coerce.patch.gz |
Attachment: 12555_conv.patch.gz Attachment: 12555_remove_base.patch.gz |
Attachment: 12555_linkage.patch.gz |
Attachment: 12555_template.patch.gz |
Attachment: 12555_FM.patch.gz Attachment: 12555_CR.patch.gz |
Attachment: 12555_CA.patch.gz |
Author: David Roe |
this is my REFEREE patch after reading through half the code. I stopped at padic_ZZ_pX_FM_element.pyx. This is the ultimate patch bomb. Very hard to referee... |
comment:6
Attachment: trac_12555-referee.patch.gz A review of this patch is at |
Reviewer: William Stein, Soroosh Yazdani, Julian Rueth |
comment:8
I've made a pull request to We had discussed having a document that runs some overall tests. I haven't made that yet, but can this week. If someone has time to take a look at this this week, I'll be available to make changes.... |
comment:9
Replying to @roed314:
Great.
You haven't started to work on this already, have you? I just started to work on these tests. I'll push to github as soon as I have something working. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:78
Should be ok now. |
comment:79
That example (and testing the files) now works for me, so it's back to positive review. EDIT - also I don't think |
comment:81
Documentation doesn't build
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
New commits:
|
comment:86
There are a number of other power series bugs that have been waiting in one way or another for rewriting of padics. Could someone here take a look and comment on the appropriate tickets? They do not seem to be resolved by this one. #9457: Buggy equality of power series -- The fix seems straightforward, but causes a bizarre doctest failure in #4656: Power series over p-adics treat inexact zeros inconsistently -- The fix here causes the same doctest to fail. #8198: p-adic precision is dropped when matrix acts on vector -- Possibly a root cause of the previous two bugs. #5075: Polynomials over inexact rings truncate inexact leading zeroes -- This was somehow fixed for polynomials over p-adics, but polynomials over other power series still have the issue. David Roe commented that it may be fixed as part of a larger patch (I hope there's not another one after this!) |
comment:88
See #15653 for a blocker follow-up. |
The goal of this ticket is to reimplement elements of Zp and Qp using the ideas from sage/rings/polynomial/polynomial_template.pxi. This should make p-adics in Sage both easier to maintain and easier to add new classes.
The final patch should not affect the external interface to Zp and Qp.
Apply
Depends on #12625
Depends on #13299
Depends on #14287
Depends on #12575
Depends on #6223
CC: @sagetrac-sydahmad @RalphieBoy @williamstein @sagetrac-JStarx @jpflori
Component: padics
Keywords: sd53 padics templates
Author: David Roe, Julian Rueth
Branch/Commit: public/padics/templates-12555 @
aa65f59
Reviewer: William Stein, Soroosh Yazdani, Julian Rueth, Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/12555
The text was updated successfully, but these errors were encountered: