-
Notifications
You must be signed in to change notification settings - Fork 70
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
Multiplication in local fields spends most of the time in multiplying ramification index with the valuation #1537
Comments
This should be a bit better with Nemocas/Nemo.jl#1776 . Hecke.jl/src/LocalField/Elem.jl Line 343 in 32b8b74
Thoughts? |
On Thu, Jun 06, 2024 at 12:55:07AM -0700, Johannes Schmitt wrote:
This should be a bit better with Nemocas/Nemo.jl#1776 .
We could probably improve it more depending on the type of the field by providing a `normalization` (or whatever the name will be) keyword for `valuation` that already does the scaling by the ramification index; and then saves the multiplication for an unramified extension.
If we have this, we could add a type parameter like `valuation(Int, ...)` that computes the valuation as an `Int` (or throws an error if it is to big / a fraction). Currently, a lot of time in `mul!` is spent converting to `Int`, so that might save a bit for some field types.
However, I don't think we can do something useful in both cases for generic `LocalField` types where the valuation is computed as "valuation of norm divided by degree": https://github.com/thofma/Hecke.jl/blob/32b8b74fbd235693924cba5bfd521f1398dc65bf/src/LocalField/Elem.jl#L343
Thoughts?
Its a fundamental problem in local stuff: the valuation is "unique", but
how depends on the context. There are two canonical choices for the
unique valuation
- surject onto Z
- extend the p-adic one
Both are canonical, well defined and useful. We (Carlo) chose the 2nd,
while precision is following the 1st.
I don't know if the problem is the choice of valuation or the different
approach for precision...
… --
Reply to this email directly or view it on GitHub:
#1537 (comment)
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
|
might be worth investigating at some point
@joschmitt
The text was updated successfully, but these errors were encountered: