#15673: major improvements to lazy power series
-------------------------------------+-------------------------------------
       Reporter:  mhansen            |        Owner:
           Type:  enhancement        |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-6.4
      Component:  combinatorics      |   Resolution:
       Keywords:  LazyPowerSeries,,  |    Merged in:
  days57                             |    Reviewers:  Ralf Stephan,
        Authors:  Mike Hansen        |  Matthieu Dien
Report Upstream:  N/A                |  Work issues:
         Branch:  u/mantepse/15673   |       Commit:
   Dependencies:                     |  aa8fd83522eaeb583da0caa5c6628ddd1ed36b04
                                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by elixyre):

 Hello,

 Thanks to update and improve this code! ;-)

 I have a stupid question: the ''lazy'' thing is a trick to compute
 efficiently the coefficient of the product of series or some other
 operations on series, right?

 About the code, why does `LazyPowerSeries` only inherit  of
 `AlgebraElement` and not of `Stream`? It seems not so python/object to
 define a lazy series as a ''capsule'' of a stream so I want to understand.

 All I read in the code look like this
 {{{
 class LazyPowerSeries(...):
       ....
       def get_order(self):
         return self._stream.get_order()
      ....
 }}}
 so it seems better to inherit of `Stream`.

 Jean-Baptiste Priez

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