palpIsReflexive AA polytope is reflexive exactly when its dual is a lattice polytope, so this is true exactly when palpNVertices gives an answer rather than null.
The summary from palpInfo answers the same question, with an N field for a reflexive polytope and an F field for one that is not. It is the slower route, because it counts the lattice points of the dual: in dimension eight it takes some seconds, against some milliseconds for this function.
|
|
The second polytope below is canonical -- its only interior lattice point is the origin -- but it is not reflexive. It is the fan polytope of the weighted projective space $P(1,1,1,2)$, and a simplex of this shape is reflexive exactly when every weight divides the sum of the weights.
|
|
|
|
This agrees with isReflexive, but goes through PALP rather than computing the dual in Macaulay2.
The object palpIsReflexive is a method function.
The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/PALPInterface.m2:1908:0.