lattice.hpp inline function moved to lattice_inline.hpp