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

toSublattice -- calculates the preimage of a polytope in the sublattice generated by its lattice points

Synopsis

Description

toSublattice can only be applied to polytopes, i.e. compact polyhedra. It calculates a basis of the sublattice generated by its lattice points, and then takes the affine preimage under the corresponding map.

P = convexHull transpose matrix {{0,0,0},{1,0,0},{0,1,0},{1,1,3}}
toSublattice P

Ways to use toSublattice :