Size of a matrix



> Is there a way to determine the size (number of rows, number of
> columns) of a matrix in Maxima?

Number of columns: length(m)
Number of rows: length(m[1])

Explanation:

m: matrix([a,b,c],[d,e,f])$
op(m) => matrix
args(m) => [ [a,b,c], [d,e,f] ]
length(args(m)) == length(m) => 2
m[1] => [a,b,c]
  (Note that this is NOT the same as row(m,1) =>
   matrix([a,b,c]), a matrix containing one row.)
length(m[1]) => 3
  (In a matrix, all rows are guaranteed to be the
   same length.)