next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Polyhedra :: latticePoints

latticePoints -- computes the lattice points of a polytope

Synopsis

Description

latticePoints can only be applied to polytopes, i.e. compact polyhedra. It embeds the polytope on height 1 in a space of dimension plus 1 and takes the Cone over this polytope. Then it projects the elements of height 1 of the Hilbert basis back again.

P = crossPolytope 3
latticePoints P
Q = cyclicPolytope(2,4)
latticePoints Q

Ways to use latticePoints :