scipy.sparse.spmatrix.

set_shape#

spmatrix.set_shape(shape)[source]#

Set the shape of the matrix in-place