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