|
D.16.2.35 nLatticePoints
Syntax:
Polymake::nLatticePoints( polytope p )
Assume:
- p bounded.
Type:
- int
Purpose:
- the number of lattice points in p.
Example:
| LIB"polymake.lib";
intmat M[3][3]=1,2,-1, 1,-1,2, 1,-1,-1;
polytope p = polytopeViaPoints(M);
Polymake::nLatticePoints(p);
intmat N[2][3]=1,2,0, 1,0,2;
polytope q = polytopeViaPoints(N);
Polymake::nLatticePoints(q);
|
|