Re: [sage-devel] "abstract" matrices

2010-04-11 Thread Nicolas M. Thiery
On Sun, Apr 11, 2010 at 11:57:18PM +0930, ross kyprianou wrote: > Learned a little about the Categories setup > Next step is to override the __repr__ method > > Is the "B[word: ]" string formed in a __str__ or __repr__ method? > If so, Im trying to work out where it is (so I can base the new c

Re: [sage-devel] "abstract" matrices

2010-04-11 Thread John Cremona
On 11 April 2010 10:55, Nicolas M. Thiery wrote: > On Sat, Apr 10, 2010 at 03:20:42PM +0100, John Cremona wrote: >> On 9 April 2010 21:42, Nicolas M. Thiery wrote: >> >> > You may want to look at: >> > >> >        sage: A = AlgebrasWithBasis(QQ).example() >> >        sage: A? >> > >> > For how to

Re: [sage-devel] "abstract" matrices

2010-04-11 Thread ross kyprianou
Hi Nicolas Learned a little about the Categories setup Next step is to override the __repr__ method Is the "B[word: ]" string formed in a __str__ or __repr__ method? If so, Im trying to work out where it is (so I can base the new code on it) I ran these... sage: C = AlgebrasWithBasis(QQ) sa

Re: [sage-devel] "abstract" matrices

2010-04-11 Thread ross kyprianou
Nicolas C = AlgebrasWithBasis(QQ) C? certainly did report back more info! And the categories seem to be the very classes needed for "abstract matrices"! Its a bit time-consuming to get on top of this if one is new to Categories (like me ;-) but the amount of functionality that you inherit makes

Re: [sage-devel] "abstract" matrices

2010-04-11 Thread Nicolas M. Thiery
On Sat, Apr 10, 2010 at 03:20:42PM +0100, John Cremona wrote: > On 9 April 2010 21:42, Nicolas M. Thiery wrote: > > > You may want to look at: > > > >        sage: A = AlgebrasWithBasis(QQ).example() > >        sage: A? > > > > For how to easily implement things like free commutative algebras. >

Re: [sage-devel] "abstract" matrices

2010-04-10 Thread John Cremona
On 9 April 2010 21:42, Nicolas M. Thiery wrote: > You may want to look at: > >        sage: A = AlgebrasWithBasis(QQ).example() >        sage: A? > > For how to easily implement things like free commutative algebras. This intrigued me, so I did exactly the above; and found that I could not unde

Re: [sage-devel] "abstract" matrices

2010-04-09 Thread Nicolas M. Thiery
On Thu, Apr 01, 2010 at 04:41:53PM -0700, Ross Kyprianou wrote: > Id like to write a package that can do "pure"/"abstract" matrix > expressions such as in the following examples > > ... > > This isnt a full specification - there are many issues not addressed > and note we are considering "pure matr

[sage-devel] "abstract" matrices

2010-04-01 Thread Ross Kyprianou
Hi Id like to write a package that can do "pure"/"abstract" matrix expressions such as in the following examples To keep things simple, in the examples below, let A, B, C... be matrices; k be a scalar "*" be matrix or scalar multiplication, "^-1" and "^T" and "^n" be matrix inverse, transpose and