[mercury-users] Matricies

Fergus Henderson fjh at cs.mu.OZ.AU
Sun Sep 26 18:28:20 AEST 1999


On 26-Sep-1999, Robert Ernst Johann JESCHOFNIK <rejj at cat.cs.mu.OZ.AU> wrote:
> I was just wondering - what is the preferred method for representing and
> storing a matrix in Mercury? An array of arrays? List of lists?
> I don't need to do any really complex computation on them, basically just
> simple matrix multiplication, inverse, etc.. But I'd like to do it the
> best way nevertheless.. and while I am there, I might as well do it right
> and build a decentish matrix library anyway.

I'm not sure what the best method would be.

The array library is intended as a building block that could be
used to implement a good matrix library.  But implementing matrices
as arrays of arrays may not be best; it might well be better to
implement an MxN matrix as a single array of length M*N.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list