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