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

mLatticePoints -- Compute the lattice points of a convex hull.

Synopsis

Description

Returns a list with the lattice points of the convex hull of L.

This uses the Convex functions convHull and hilbertbasis.

i1 : L={vector {3,-1,-1},vector {-1,3,-1},vector {-1,-1,3},vector {-1,-1,-1}};
i2 : P=mLatticePoints(L)

o2 = {| -1 |, | -1 |, | -1 |, | 0  |, | -1 |, | -1 |, | 0 |, | -1 |, | 0  |,
      | 3  |  | 2  |  | 2  |  | 2  |  | 1  |  | 1  |  | 1 |  | 1  |  | 1  | 
      | -1 |  | 0  |  | -1 |  | -1 |  | 1  |  | 0  |  | 0 |  | -1 |  | -1 | 
     ------------------------------------------------------------------------
     | 1  |, | -1 |, | -1 |, | 0 |, | -1 |, 0, | 1 |, | -1 |, | 0  |, | 1  |,
     | 1  |  | 0  |  | 0  |  | 0 |  | 0  |     | 0 |  | 0  |  | 0  |  | 0  | 
     | -1 |  | 2  |  | 1  |  | 1 |  | 0  |     | 0 |  | -1 |  | -1 |  | -1 | 
     ------------------------------------------------------------------------
     | 2  |, | -1 |, | -1 |, | 0  |, | -1 |, | 0  |, | 1  |, | -1 |, | 0  |,
     | 0  |  | -1 |  | -1 |  | -1 |  | -1 |  | -1 |  | -1 |  | -1 |  | -1 | 
     | -1 |  | 3  |  | 2  |  | 2  |  | 1  |  | 1  |  | 1  |  | 0  |  | 0  | 
     ------------------------------------------------------------------------
     | 1  |, | 2  |, | -1 |, | 0  |, | 1  |, | 2  |, | 3  |}
     | -1 |  | -1 |  | -1 |  | -1 |  | -1 |  | -1 |  | -1 |
     | 0  |  | 0  |  | -1 |  | -1 |  | -1 |  | -1 |  | -1 |

o2 : List

Ways to use mLatticePoints :

  • mLatticePoints(List)