[sage-devel] Re: abstract matrices

2010-05-02 Thread Ross Kyprianou
This turned out as good as it looked Nicolas A lot of the planned functionality is already in place with this initial code - Thanks! Now it should be possible (for me) to implement some more code (which is indicated in the second section (below) i.e. under the section with title "I need to impleme

[sage-devel] Re: abstract matrices

2010-05-01 Thread Ross Kyprianou
Nicolas No worries about deadlines - this looks excellent - thanks! Will let you know how things go. This gives me lots to work with Thanks again! On May 1, 6:30 pm, "Nicolas M. Thiery" wrote: >         Dear Ross, > > On Mon, Apr 19, 2010 at 06:38:31PM +0930, ross kyprianou wrote: > > (Im trying

[sage-devel] Re: abstract matrices

2010-05-01 Thread Nicolas M. Thiery
Dear Ross, On Mon, Apr 19, 2010 at 06:38:31PM +0930, ross kyprianou wrote: > (Im trying to finish this in 2-3 weeks to include some results in a > paper but I understand that may not be possible) Oops, I just noticed this deadline of yours; I hope you will still make it! Please find attac

Re: [sage-devel] Re: "abstract" matrices

2010-04-18 Thread Nicolas M. Thiery
On Sun, Apr 18, 2010 at 07:03:13PM +0930, ross kyprianou wrote: > The Sage developer community is one of the most > helpful and encouraging group of people I have ever been associated with! It's not like we have a choice: we need you :-) But I am glad that we reach our aim! Cheers,

Re: [sage-devel] Re: "abstract" matrices

2010-04-18 Thread ross kyprianou
> Send me your code, and I > refactor it to its simplest form, as a basis for further work. Very kind offer :-) > The most efficient would be to upload it on the Sage-Combinat queue, > but that will take some learning the tool: > http://wiki.sagemath.org/combinat/MercurialStepByStep; otherwise >

Re: [sage-devel] Re: "abstract" matrices

2010-04-18 Thread Nicolas M. Thiery
On Sun, Apr 18, 2010 at 10:08:28AM +0930, ross kyprianou wrote: > >> Any ideas of why _repr_ might not be working inside the class? > > Was this class that of the category or the parent? > > I made a copy of AlgebrasWithBasis.py (so that's the category isnt it?) > and placed my version of _repr_ i

Re: [sage-devel] Re: "abstract" matrices

2010-04-17 Thread ross kyprianou
>> Any ideas of why _repr_ might not be working inside the class? > Was this class that of the category or the parent? I made a copy of AlgebrasWithBasis.py (so that's the category isnt it?) and placed my version of _repr_ is various places within that code but it didnt override the default _repr

Re: [sage-devel] Re: "abstract" matrices

2010-04-17 Thread Nicolas M. Thiery
On Tue, Apr 13, 2010 at 07:20:18AM +0930, ross kyprianou wrote: > One problem I found yesterday is I worked on the _repr_ outside the > class until it worked as > planned then when I cut and pasted it inside the class (right at the > top, as the first function) it didnt seem > to change what was pr

Re: [sage-devel] Re: "abstract" matrices

2010-04-12 Thread ross kyprianou
On Tue, Apr 13, 2010 at 2:53 AM, Nicolas M. Thiery wrote: >> ### Example 1 ### >> sage: (P,Q,R)= >> MtxAlgebrasWithBasis(QQ).example(('P','Q','R')).algebra_generators() > > Do you need a specific category for your application? In particular, > will you have several parents between which to share

Re: [sage-devel] Re: "abstract" matrices

2010-04-12 Thread Nicolas M. Thiery
On Mon, Apr 12, 2010 at 10:12:47PM +0930, ross kyprianou wrote: > # This made things very interesting. > # Using WordOptions(identifier='') does most of the work needed > > ### Example 1 ### > sage: (P,Q,R)= > MtxAlgebrasWithBasis(QQ).example(('P','Q','R')).algebra_generators() Do you need a spe

Re: [sage-devel] Re: "abstract" matrices

2010-04-12 Thread ross kyprianou
# This made things very interesting. # Using WordOptions(identifier='') does most of the work needed ### Example 1 ### sage: (P,Q,R)= MtxAlgebrasWithBasis(QQ).example(('P','Q','R')).algebra_generators() sage: P*(Q+R) B[word: PQ] + B[word: PR] ### Example 2 ### sage: WordOptions(identifier='') s

[sage-devel] Re: "abstract" matrices

2010-04-12 Thread slabbe
Hi, > Im guessing the code to make the "B[word: ]" string > may have been in a python file that corresponded to one of the > Categories above but couldnt find it The 'word: ' part comes from sage/combinat/words : sage: Word(range(10)) word: 0123456789 sage: Word(lambda n:n) word: 0,1,2,3,4,5

[sage-devel] Re: "abstract" matrices

2010-04-12 Thread slabbe
Hi, > Im guessing the code to make the "B[word: ]" string > may have been in a python file that corresponded to one of the > Categories above but couldnt find it The 'word: ' part comes from sage/combinat/words : sage: Word(range(10)) word: 0123456789 sage: Word(lambda n:n) word: 0,1,2,3,4,5