unexpected TypeError while creating a polyhedron over ZZ with Normaliz
The following code
Polyhedron( ieqs=[(-1, 1, -1, 0, -4), (2, -1, 1, 0, 4), (0, 1, 1, 2, -2), (2, -1, -1, -2, 2), (0, 0, -1, 1, 1), (1, 0, 1, -1, -1), (0, 1, 0, 0, 1), (1, -1, 0, 0, -1)], base_ring=ZZ, backend='normaliz' )
gives me TypeError: no conversion of this rational to integer
in Sage 9.4. It can also be seen in SagMathCell - https://sagecell.sagemath.org/?q=soiohx
The error disappears if base_ring
is changed to QQ
. What's wrong?
Does it have integer vertices ?
Does it have to? I thought it's reduced to the integral hull when defined over
ZZ
.