#20693: Sage crashes when computing newforms
---------------------------------+------------------------
       Reporter:  ehlen          |        Owner:
           Type:  defect         |       Status:  new
       Priority:  critical       |    Milestone:  sage-7.3
      Component:  modular forms  |   Resolution:
       Keywords:                 |    Merged in:
        Authors:                 |    Reviewers:
Report Upstream:  N/A            |  Work issues:
         Branch:                 |       Commit:
   Dependencies:                 |     Stopgaps:
---------------------------------+------------------------

Comment (by pbruin):

 Replying to [comment:10 ehlen]:
 > I did similar profiling tests as you did, @pbruin and discovered that
 the main reason for this being slow is that elements in the base ring (a
 cyclotomic field) get coerced into a relative extension (obtained by
 adjoining the roots of a hecke polynomial). This is damn slow for some
 reason (note that it is stated in the documentation of relative number
 fields that doing arithmetic in number field towers is very slow but it
 seems that it got worse than it used to be). I discovered that such
 operations can be accelerated by very stupid means. For instance, instead
 of coercing an element e of K into an extension L directly, write it in
 terms of a power basis (e.list()), coerce the generator of K into L and
 create the element corresponding to e in L directly. I can document some
 examples later.
 It turns out that `NumberField_relative.__base_inclusion()` uses a PARI
 function that is too general (and hence too slow) for this purpose.  I
 opened #20749 to address this.

--
Ticket URL: <http://trac.sagemath.org/ticket/20693#comment:13>
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