#6766: faster powers of factorizations
-------------------------+--------------------------------------------------
 Reporter:  fwclarke     |       Owner:  tbd           
     Type:  enhancement  |      Status:  new           
 Priority:  minor        |   Milestone:  sage-4.1.2    
Component:  algebra      |    Keywords:                
 Reviewer:               |      Author:  Francis Clarke
   Merged:               |  
-------------------------+--------------------------------------------------
 The patch provides a much faster method for computing powers of
 commutative factorizations.  This implements a suggestion made by John
 Cremona in #5188.
 The speed-up is most marked for factorizations of ideals in number fields.
 Before:
 {{{
 sage: f = NumberField(x^2 + 23, 'a').factor(47)
 sage: timeit('f^10')
 5 loops, best of 3: 134 ms per loop
 }}}
 After:
 {{{
 sage: f = NumberField(x^2 + 23, 'a').factor(47)
 sage: timeit('f^10')
 625 loops, best of 3: 571 µs per loop
 }}}

 In addition, five redundant lines have been removed from the `__init__`
 function of the `Factorization` class.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6766>
Sage <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to