Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 14 years ago

Mike Hansen gravatar image

You can get the dimensions with the nrows and ncols methods:

sage: m
[0 0 0]
[0 0 0]
sage: m.nrows()
2
sage: m.ncols()
3