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

dim(CellComplex) -- compute the dimension of a cell complex

Synopsis

Description

Given a cell complex C, dim returns its dimension. The dimension is equal to the largest dimension of a cell in C.

i1 : R = QQ[x,y,z];
i2 : vx = newSimplexCell({},x);
i3 : vy = newSimplexCell({},y);
i4 : vz = newSimplexCell({},z);
i5 : exy = newSimplexCell {vx,vy};
i6 : C = cellComplex(R,{exy,vz});
i7 : dim C

o7 = 1

See also

Ways to use this method: