scipy.sparse
spmatrix.
set_shape
See reshape.
reshape
scipy.sparse.spmatrix.reshape
scipy.sparse.spmatrix.setdiag