SciPy

scipy.sparse.spmatrix.reshape

spmatrix.reshape(shape)[source]