SciPy

scipy.sparse.bsr_matrix.reshape

bsr_matrix.reshape(shape)[source]