#18740: Reduce overhead for relative number field elements
----------------------------+----------------------------------------------
Reporter: pbruin | Owner:
Type: enhancement | Status: new
Priority: minor | Milestone: sage-6.8
Component: number | Keywords: relative number field pari
fields | Authors: Peter Bruin
Merged in: | Report Upstream: N/A
Reviewers: | Branch:
Work issues: | Dependencies: #18727, #18739
Commit: |
Stopgaps: |
----------------------------+----------------------------------------------
We should use the PARI functions wrapped in #18739 to avoid initialisation
of PARI `rnf` structures when only doing simple arithmetic in relative
number fields.
Summary of changes:
- new method `NumberFieldElement._pari_polynomial`;
- replace the method `_pari_rnfequation` of `NumberField_relative` by
`_pari_rnfeq`, which calls the PARI function `nf_rnfeq` (which returns
slightly more information than `rnfequation`);
- replace `K.pari_rnf().rnfeltreltoabs(x)` by
`K._pari_rnfeq().eltreltoabs(x)` and similar;
- remove the misleadingly named (and now obsolete) method
`NumberField_relative._rnfeltreltoabs`, which only did something
meaningful for elements in the base field;
- merge `NumberField_relative.pari_polynomial` into
`NumberField_generic.pari_polynomial`.
--
Ticket URL: <http://trac.sagemath.org/ticket/18740>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.