|
D.13.4.30 isGorenstein
Procedure from library polymake.lib (see polymake_lib).
- Usage:
- isGorenstein(p); p polytope
- Return:
- 1, if p is Gorenstein, i.e. reflexive modulo dilatation and translation; 0 otherwise
Example:
| LIB "polymake.lib";
==> Welcome to polymake version
==> Copyright (c) 1997-2015
==> Ewgenij Gawrilow, Michael Joswig (TU Darmstadt)
==> http://www.polymake.org
intmat M[4][3]=
1,1,0,
1,0,1,
1,0,0,
1,1,1;
polytope p = polytopeViaPoints(M);
isGorenstein(p);
==> polymake: used package ppl
==> The Parma Polyhedra Library (PPL): A C++ library for convex polyhedra
==> and other numerical abstractions.
==> http://www.cs.unipr.it/ppl/
==>
==> 1
intmat N[3][3]=
1,2,0,
1,0,2,
1,-2,-2;
polytope q = polytopeViaPoints(N);
isGorenstein(q);
==> 0
|
|