See the documentation of treams.lattice.recsumcw1d().
treams.lattice.recsumcw1d()
treams.lattice.cython_lattice.realsumsw1d
treams.lattice.cython_lattice.recsumsw1d