Macaulay2 » Documentation
Packages » Polyhedra :: isEmpty
next | previous | forward | backward | up | index | toc

isEmpty -- checks if a Polyhedron is empty

Synopsis

Description

The polyhedron is empty if the dimension is -1.
i1 : P = polyhedronFromHData(matrix{{1,0},{0,1},{-1,-1}},matrix{{-1},{1},{-1}})

o1 = P

o1 : Polyhedron
i2 : isEmpty P

o2 = true

Ways to use isEmpty :

For the programmer

The object isEmpty is a method function.