Macaulay2 » Documentation
Packages » EliminationTemplates :: getTemplateMatrix
next | previous | forward | backward | up | index | toc

getTemplateMatrix -- computes template matrix

Description

This method computes the template matrix corresponding to the inputted elimination template.

i1 : R = QQ[x,y]

o1 = R

o1 : PolynomialRing
i2 : I = ideal(x^4+x*y+y^2-3, x^2*y+y^3-2)

             4          2       2     3
o2 = ideal (x  + x*y + y  - 3, x y + y  - 2)

o2 : Ideal of R
i3 : E = eliminationTemplate(x,I)

o3 =  action variable: x

o3 : EliminationTemplate
i4 : getTemplateMatrix(E)

o4 = | 1 0 0 0 0 0 0  0 1 1 0 0 0 0  0 -3 0 0  0  |
     | 0 1 0 0 0 0 0  0 0 0 0 1 1 0  0 0  0 -3 0  |
     | 0 0 0 0 1 0 0  0 0 0 0 0 0 0  1 1  0 0  -3 |
     | 1 0 1 0 0 0 -2 0 0 0 0 0 0 0  0 0  0 0  0  |
     | 0 1 0 1 0 0 0  0 0 0 0 0 0 -2 0 0  0 0  0  |
     | 0 0 0 0 0 1 0  0 0 1 0 0 0 0  0 0  0 -2 0  |
     | 0 0 0 0 0 0 1  0 0 0 0 0 1 0  0 0  0 0  -2 |

              7       19
o4 : Matrix QQ  <-- QQ

See also

Ways to use getTemplateMatrix:

  • getTemplateMatrix(EliminationTemplate)
  • getTemplateMatrix(RingElement,Matrix,Ideal)

For the programmer

The object getTemplateMatrix is a method function with options.


The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/EliminationTemplates.m2:1060:0.