#20759: Lazier computation of generators of relative number fields
-----------------------------+-------------------------------
   Reporter:  pbruin         |            Owner:
       Type:  enhancement    |           Status:  new
   Priority:  minor          |        Milestone:  sage-7.3
  Component:  number fields  |         Keywords:
  Merged in:                 |          Authors:  Peter Bruin
  Reviewers:                 |  Report Upstream:  N/A
Work issues:                 |           Branch:
     Commit:                 |     Dependencies:
   Stopgaps:                 |
-----------------------------+-------------------------------
 Currently, the generators of a relative number field (including images of
 generators of the base field) are computed on initialisation.  This causes
 a slowdown when applying #20749; see comment:5:ticket:20749.

 The slow initalisation can be solved using "lazier" implementations of the
 methods `gen()`, `gens()`, `ngens()` and `_first_ngens()` of
 `NumberField_relative`.  In combination with #20749, this means that the
 somewhat expensive method `_nf_nfzk()` will only be called the first time
 an element from the base field is mapped to the relative field.  This is
 probably the most reasonable point at which to call `_nf_nfzk()`.

--
Ticket URL: <http://trac.sagemath.org/ticket/20759>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to