answered 14 years ago
You can get the dimensions with the nrows and ncols methods:
nrows
ncols
sage: m [0 0 0] [0 0 0] sage: m.nrows() 2 sage: m.ncols() 3