Macaulay2 » Documentation
Packages » Polyhedra :: dim(PolyhedralObject)
next | previous | forward | backward | up | index | toc

dim(PolyhedralObject) -- computes the dimension of a cone, polyhedron, fan or polyhedral complex

Synopsis

Description

i1 : C = coneFromVData matrix {{2,3},{3,2}}

o1 = C

o1 : Cone
i2 : dim C

o2 = 2

Returns the dimension of a cone.
i3 : F = hirzebruch 3

o3 = F

o3 : Fan
i4 : dim F

o4 = 2

Returns the dimension of a fan. This is the maximal dimension of all cones of the fan.
i5 : P = convexHull matrix {{1,-1,0,0},{0,0,1,-1}}

o5 = P

o5 : Polyhedron
i6 : dim P

o6 = 2

Returns the dimension of a polyhedron.
i7 : PC = polyhedralComplex crossPolytope 3

o7 = PC

o7 : PolyhedralComplex
i8 : dim PC

o8 = 3

Returns the dimension of a polyhedral complex. This is the maximal dimension of all polyhedra of the complex.

Ways to use this method: