Home Online Manual
Top
Back: nBoundaryLatticePoints
Forward: nInteriorLatticePoints
FastBack: gfanlib_so
FastForward: Release Notes
Up: polymake_so
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.16.2.33 nHilbertBasis

Syntax:
Polymake::nHilbertBasis( cone c )
Type:
int
Purpose:
the number of elements in the Hilbert basis of the semigroup of lattice points in c.
Example:
 
  LIB"polymake.lib";
==> Welcome to polymake
==> Copyright (c) 1997-2012
==> Ewgenij Gawrilow, Michael Joswig (TU Darmstadt)
==> http://www.polymake.org
  intmat M[3][4]=1,1,0,0, 1,0,1,0, 1,0,0,0;
  intmat N[3][4]=1,0,0,1, 1,-1,-1,-1, 1,0,0,0;
  polytope p = polytopeViaPoints(M);
  polytope q = polytopeViaPoints(N);
  polytope pq = Polymake::minkowskiSum(p,q);
==> polymake: used package cddlib
==>   Implementation of the double description method of Motzkin et al.
==>   Copyright by Komei Fukuda.
==>   http://www.ifor.math.ethz.ch/~fukuda/cdd_home/cdd.html
==> 
  pq;
==> AMBIENT_DIM
==> 3
==> INEQUALITIES
==> 1,-1,-1, 0,
==> 1,-1,-1, 2,
==> 1,-1, 1, 0,
==> 1, 0, 0,-1,
==> 1, 0, 0, 1,
==> 1, 0, 2,-1,
==> 1, 1,-1, 0,
==> 1, 2, 0,-1
==> EQUATIONS
==> 
==>