[Haskell-cafe] Simple matrix

Udo Stenzel u.stenzel at web.de
Thu Jun 22 10:23:51 EDT 2006

Bjorn Lisper wrote:
> - your definition of fromInteger will behave strangely with the elementwise
>   extended operations, like (+). 1 + [[1,2],[3,4]] will become
>   [[2,2],[3,5]] rather than [[2,3],[4,5]]. Array languages supporting this
>   kind of overloading invariably have the second form of semantics.

Don't call an array a matrix.  If is named matrix, it should have
matrix multiplication, addition, and they should obey the expected laws.  

Jeder Idiot kann seine Fehler verteidigen, was die meisten Idioten ja
auch tun.  -- Dale Carnegie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org//pipermail/haskell-cafe/attachments/20060622/7fcb7234/attachment.bin

More information about the Haskell-Cafe mailing list