-
-
Notifications
You must be signed in to change notification settings - Fork 512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Meta ticket: unified sequence/lazy list objects #16107
Comments
This comment has been minimized.
This comment has been minimized.
Changed keywords from none to days57 |
comment:5
After some tests, We will try to do an implementation of |
This comment has been minimized.
This comment has been minimized.
Changed keywords from days57 to days57, LazyPowerSeries |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:14
I've updated the description. Please add here what else should be done; maybe something in words? ...or for lazy power series? |
comment:16
I am thinking about implementing InfiniteSequences and have the following design issue with the two possibilites (it is not restricted to the infinite sequences, but is similar for other classes like words, stream in the species, etc., as well):
Both have advantages and disadvantages:
What do you think? |
comment:17
I just realized that Should |
comment:18
Replying to @dkrenn:
Could you explain? What does it mean that you cannot use a derived class directly? |
comment:19
Replying to @mantepse:
But when using the factory
|
comment:20
Replying to @mantepse:
No algebraic strcture (due to the discussion on #15852 about (finite) sequences). |
comment:22
Replying to @mantepse:
Sequences have a common universe for all the elements of the lazy list and they are (in contrast to lazy list) a |
comment:23
Replying to @dkrenn:
OK, so in particular this answers my question: a stream of coefficients should not inherit from |
comment:24
Replying to @mantepse:
So your question back to you: What characterizes a stream on your sense? |
comment:25
(I assume you mean stream of coefficients?) I want both a common universe and an algebraic structure: all coefficients are from a ring - in particular, I absolutely need a (recognisable!) zero. |
comment:26
Replying to @mantepse:
Yes.
What operations are allowed on streams then? (I assume point-wise addition; what do you need multiplication for?) |
comment:27
Replying to @mantepse:
So your streams seem to be a more specialized than my sequences. In this way, would it be an option for you that streams have sequences as a base class? |
comment:28
Well, I really want to keep them relatively general, mainly because I won't gain anything by requiring certain operation. I do think that it makes sense to require that the coefficients are from a (possibly noncommutative) ring. I can't think of any applications where we do not have this. I need the recognisable zero to be able to do the trick with recursive definition.
Yes, certainly.
Yes. |
Several (maybe specialized) implementations of lazy lists exist. This meta ticket can be considered closed when
class Sequence
has a parent from the categorySets
implemented)class Sequence
: maybe renaming toFiniteSequence
class InfiniteSequence
class Sequence
,class InfiniteSequence
) usesage.misc.lazy_list
combinat.species.*stream
to usesage.misc.lazy_list
Depends on #15852
Depends on #15673
Depends on #16137
Depends on #18565
Depends on #19895
Depends on #19896
CC: @MatthieuDien @videlec @nthiery @mantepse
Component: combinatorics
Keywords: days57, LazyPowerSeries
Issue created by migration from https://trac.sagemath.org/ticket/16107
The text was updated successfully, but these errors were encountered: