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