shape

property Matrix.shape

As for numpy.ndarray