I have a matrix (in Sage) in a notebook - through Jupyter.
How do I find the size of this matrix in Sage? I know in Python I can find the length of a list with
len(list)
Is there, in Sage, a function that does this, but with a matrix? Kinda like
len(matrix)
Example when I try it:
len([1, 2, 3])
3
len(matrix([[1, 2, 3], [4, 5, 6]]))
TypeError: object of type sage.matrix.matrix_integer_dense.Matrix_integer_dense' has no len()
Same with:
aMatrix = matrix([[1, 2, 3], [4, 5, 6]])
aMatrix
len(aMatrix)
Thanks! Appreciate any help.