See the documentation of treams.lattice.lsumcw1d().
treams.lattice.lsumcw1d()
treams.lattice.cython_lattice.dsumsw1d
treams.lattice.cython_lattice.lsumsw1d