SciPy

scipy.sparse.bsr_matrix.get_shape

bsr_matrix.get_shape()[source]

Get shape of a matrix.