Macaulay2 » Documentation
Packages » OIGroebnerBases » getWidth
next | previous | forward | backward | up | index | toc

# getWidth -- get the width of an element of a free OI-module

- Usage:
    `getWidth f`
- Inputs:
  - f, an instance of the type VectorInWidth,
- Outputs:
  - an integer,

## Description

Returns the width of an element of a free OI-module.

    i1 : P = makePolynomialOIAlgebra(2, x, QQ);

    i2 : F = makeFreeOIModule(e, {1,1,2}, P);

    i3 : installGeneratorsInWidth(F, 4);

    i4 : f = x_(2,4)*e_(4,{3},1)+x_(1,3)^2*e_(4,{2,4},3)

                         2
    o4 = x   e        + x   e
          2,4 4,{3},1    1,3 4,{2, 4},3

                                                             14
    o4 : (QQ[x   , x   , x   , x   , x   , x   , x   , x   ])   in width 4
              2,4   2,3   2,2   2,1   1,4   1,3   1,2   1,1

    i5 : getWidth f

    o5 = 4

## Ways to use getWidth:

- `getWidth(VectorInWidth)`

## For the programmer

The object getWidth is a method function.

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/OIGroebnerBases.m2:1815:0.