Re: [open-axiom-devel] [Axiom-mail] Setting elements in a matrix

Ralf Hemmecke <[email protected]>
Newsgroups gmane.comp.mathematics.open-axiom.devel,gmane.comp.mathematics.axiom.devel,gmane.comp.mathematics.axiom.user
Message-ID <[email protected]>
On 02/29/2008 09:27 AM, Martin Rubey wrote:
 > make SQMATCAT inherit from MATCAT.

I am sure you don't want that.

We have

MatrixCategory(R,Row,Col): Category == Definition where
   R   : Ring
   Row : FiniteLinearAggregate R
   Col : FiniteLinearAggregate R

   Definition ==> TwoDimensionalArrayCategory(R,Row,Col) with
      ...
      coerce: Col -> %
      transpose: Row -> %
      horizConcat: (%,%) -> %
      vertConcat: (%,%) -> %
      ...

There are even more functions that allow the result to be a non-square 
matrix.

SquareMatrix *should not* inherit from MatrixCategory!!!

The better way would be to factor out a subcategory that doesn't change 
the structure of the matrix and let SquareMatrix and MatrixCategory 
inherit from that.

Ralf

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.