#5005: polynomial_template __init__ from list horribly innefficient
----------------------+-----------------------------------------------------
 Reporter:  robertwb  |       Owner:  tbd          
     Type:  defect    |      Status:  new          
 Priority:  major     |   Milestone:  sage-wishlist
Component:  algebra   |    Keywords:               
----------------------+-----------------------------------------------------
 {{{
             for e in x:
                 # r += parent(e)*power
                 celement_pow(&monomial, &gen, deg, NULL, parent)
                 coeff = (<Polynomial_template>parent(e)).x
                 celement_mul(&monomial, &coeff, &monomial, parent)
                 celement_add(&self.x, &self.x, &monomial, parent)
                 deg += 1
 }}}

 There should be a celement_set(self, x, i).

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5005>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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