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