#16137: lazy_list from various input data
-------------------------------------+-------------------------------------
Reporter: MatthieuDien | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: sage-6.4
Component: misc | Resolution:
Keywords: LazyPowerSeries, | Merged in:
lazy_list, days57 | Reviewers:
Authors: Vincent | Work issues:
Delecroix, Matthieu Dien | Commit:
Report Upstream: N/A | 37e67683e7a2f10152ba3a01b8aed508fe92f0f1
Branch: | Stopgaps:
u/MatthieuDien/lazy_list_from_various_input_data|
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by vdelecroix):
Replying to [comment:25 mantepse]:
> Replying to [comment:24 vdelecroix]:
> > 3) I think we need more classes
>
> I think we should try to avoid redundancy. I guess, redundancy will be
obvious once coded...
>
> However, I also thought that something like `lazy_list_explicit` would
be very useful. I'm not sure: is turning on caching for a function in
python easy enough so that a cached variant of this would not make sense?
yes, but right now only in Sage:
{{{
sage: f = lambda n: n*(n+1)/2
sage: f_cached = cached_function(f)
sage: f_cached(10)
55
sage: f_cached.get_cache()
{((10,), ()): 55}
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/16137#comment:28>
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 http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.