Macaulay2 » Documentation
Packages » ThreadedGB :: matrix(LineageTable)
next | previous | forward | backward | up | index | toc

matrix(LineageTable) -- extract a matrix of polynomials from values of a LineageTable after deleting null values

Description

This simple function just returns the Gr\"obner basis computed with threaded Gr\"obner basis function tgb in the expected Macaulay2 format, so that further computation are one step easier to set up.

i1 : R = ZZ/101[a,b,c];
i2 : allowableThreads= 2;
i3 : T = reduce tgb( ideal "abc+c2,ab2-b3c+ac,b2")

o3 = LineageTable{(((0, 1), 0), 0) => null}
                  ((0, 1), 0) => null
                                  2
                  ((1, 2), 0) => c
                  (0, 1) => null
                  (0, 2) => null
                  (1, 2) => a*c
                  0 => null
                  1 => null
                        2
                  2 => b

o3 : LineageTable
i4 : matrix T

o4 = | b2 c2 ac |

             1      3
o4 : Matrix R  <-- R

Ways to use this method:

  • matrix(LineageTable) -- extract a matrix of polynomials from values of a LineageTable after deleting null values

The source of this document is in /build/reproducible-path/macaulay2-1.25.05+ds/M2/Macaulay2/packages/ThreadedGB.m2:563:0.