Hello Aaron, I am thinking about something like this:
class Lazyarray(object): > > """ > > Lazy-evaluated array > > """ > > def __init__(self, array): > > """ > > Initiate a Lazyarray with an array > > """ > > self.operations = [] > > def evaluate(self, f=None): > > """ > > Evaluate all operations stored in the operations list.If parameter 'f' > > is None then evaluate all operations, otherwise evaluate only the > > function 'f' > > Some functions will use generator object for some iteration purposes > > in order to save the memory cost > > """ > > >> def _add_operation(self, op): > > """ > > Add an operation to the list of operations > > """ > > def sum(): > > """ > > Add the operator Sum to the list of operations, transparent to the users > > """ > > def _sum() > > """ > > An inner function that will be called by evaluate() to perform a sum. A > > real implementation of sum operator. > > """ > > Will it be valide? Or it is already implemented? -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at https://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/33327315-8e87-4287-940e-beb0f69d17da%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.