limitation on size of read-in matrix, was: Re: GCL limitation
Subject: limitation on size of read-in matrix, was: Re: GCL limitation
From: Camm Maguire
Date: 22 Sep 2004 13:50:51 -0400
Greetings!
I'm not sure at all about the details here, but in general I would
suggest one represent matrices as arrays rather than lists -- one can
manipulate large matrices thus much more efficiently. You can even
have it both ways with a 'turbo list' -- set each array element to
point to the cons the car of which is the element you want -- you can
then access the data both ways. I had something like this worked up
for the GCL compiler, but in the end I didn't need the list part.
Take care,
Robert Dodier <robert_dodier@yahoo.com> writes:
> Hello all,
>
> If it's not clear to readers, Andrej is not trying to write
> a clumsy function with more than 64 arguments. Instead he
> is running into trouble with numericalio (as he stated).
>
> Numericalio.lisp constructs a matrix like this:
>
> (defun $read_matrix (file-name &optional sep-ch-flag)
> `(($matrix) ,@(cdr ($read_nested_list file-name sep-ch-flag))))
>
> I wrote that, but since my grasp of Lisp is fairly primitive,
> I must have adapted it from elsewhere. (Perhaps something
> Barton Willis wrote?)
>
> As Maximists know, the matrix function takes a list of rows
> as its arguments, e.g. M: matrix ([1,2], [3,4]);
> So, it appears, one must supply 65 or more arguments to make
> a matrix with that 65 or more rows. This is the essence of
> the problem, I believe.
>
> I don't yet have an answer for Andrej, but at this point
> I hope the nature of the problem is clearer.
>
> Regards to all,
> Robert Dodier
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - 50x more storage than other providers!
> http://promotions.yahoo.com/new_mail
>
> _______________________________________________
> Maxima mailing list
> Maxima@www.math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>
>
>
--
Camm Maguire camm@enhanced.com
==========================================================================
"The earth is but one country, and mankind its citizens." -- Baha'u'llah