Looks like a compile bug to me.
Anyway, you could also try length(transpose(mat)). Not very efficient is mat
is large, but can be compiled in 5.9.1.
Viktor
-----Original Message-----
From: maxima-admin@math.utexas.edu [mailto:maxima-admin at math] On
Behalf Of laurent couraud
Sent: Thursday, March 24, 2005 2:43 PM
To: 'Viktor T. Toth'; maxima@math.utexas.edu
Subject: RE : Number of column in a matrix
Thanks Viktor.
This work directly in Maxima or in batch file but not in translated code.
The translated code is :
(MFUNCTION-CALL $LENGTH (MAREF $MAT 1))
> De : Viktor T. Toth [mailto:vttoth@vttoth.com]
> Try length(a[1]).
> The difference is that row(a,1) returns a matrix (of one row), while a[1]
> returns a list.
> Viktor
>> Hello,
>> How to know the number of column in a matrix.
>> If A is the matrix and if I do :
>> LENGTH(ROW(A,1));
>> This return alway 1.
>> Thanks for your help.
_______________________________________________
Maxima mailing list
Maxima@www.math.utexas.edu
http://www.math.utexas.edu/mailman/listinfo/maxima
_______________________________________________
Maxima mailing list
Maxima@www.math.utexas.edu
http://www.math.utexas.edu/mailman/listinfo/maxima