Check if object is a matrix
How can I check if something is a matrix?
The best I've come up with so far is:
x in MatrixSpace(SR,n)
But it doesn't work for arbitrary dimension. (Am I right in assuming that SR is the most general thing one can define a matrix over?)