Skip to content
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

p-adics done right #1746

Merged
merged 29 commits into from
May 16, 2024
Merged

p-adics done right #1746

merged 29 commits into from
May 16, 2024

Conversation

joschmitt
Copy link
Contributor

@joschmitt joschmitt commented May 7, 2024

  • Cache p-adic and q-adic fields only via the prime number and degree
  • Move some code from HeckeMoreStuff to the correct file + some tests
  • Introduce user facing constructors padic_field and qadic_field where the precision is a keyword argument
  • Add precision keyword arguments to all constructors which take exact input
  • Deprecate some functionality like prime_field (should never have been called like that) or lift(::PadicFieldElem) (lifts to ZZ, so one should call lift(ZZ, ...)) + more.

Copy link

codecov bot commented May 7, 2024

Codecov Report

Attention: Patch coverage is 90.19608% with 20 lines in your changes are missing coverage. Please review.

Project coverage is 85.32%. Comparing base (746d57a) to head (9c5b8e7).

Files Patch % Lines
src/flint/qadic.jl 88.70% 14 Missing ⚠️
src/Deprecations.jl 0.00% 3 Missing ⚠️
src/flint/padic.jl 95.45% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1746      +/-   ##
==========================================
+ Coverage   85.09%   85.32%   +0.22%     
==========================================
  Files          95       95              
  Lines       36917    36903      -14     
==========================================
+ Hits        31416    31487      +71     
+ Misses       5501     5416      -85     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/Deprecations.jl Outdated Show resolved Hide resolved
src/flint/FlintTypes.jl Outdated Show resolved Hide resolved
@joschmitt joschmitt force-pushed the js/padic_done_right branch 3 times, most recently from fcc3b80 to de68ed3 Compare May 8, 2024 15:08
@joschmitt joschmitt changed the title Don't cache p-adics via precision p-adics done right May 10, 2024
@joschmitt
Copy link
Contributor Author

I think I have now everything we discussed.

@thofma
Copy link
Member

thofma commented May 14, 2024

Looks good, let's discuss the Hecke breakage tomorrow.

return g
end

function with_precision(f, K::QadicField, n::Int)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joschmitt
Copy link
Contributor Author

This is good to go from my side. It would be good to have a patch release with this, so that I can use it in Hecke.

@thofma thofma merged commit d619886 into Nemocas:master May 16, 2024
26 checks passed
@thofma
Copy link
Member

thofma commented May 16, 2024

Very good, thanks

@joschmitt joschmitt deleted the js/padic_done_right branch May 16, 2024 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants