Macaulay2 » Documentation
Packages » DGAlgebras » DG module primitives and chain-complex export » getBasis(ZZ,DGModule)
next | previous | forward | backward | up | index | toc

getBasis(ZZ,DGModule) -- Basis of the hom-degree-n piece of a DG module

Description

getBasis(n, M) delegates to basis on the underlying A.natural-module M.natural, restricting to the variables of A.natural. The result is the piece of M on which moduleDifferential(n, M) acts as its source-side basis.

i1 : R = QQ[x, y] / ideal(x^2, y^2)

o1 = R

o1 : QuotientRing
i2 : KM = koszulComplexDGM R^1

o2 = {Base ring => R                    }
      DG algebra => R[T   ..T   ]
                       1,1   1,2
                                       1
      Natural module => (R[T   ..T   ])
                            1,1   1,2
      Generator degrees => {{0, 0}}
      Differentials on gens => {0}

o2 : DGModule
i3 : b = getBasis(1, KM)

o3 = | T_(1,1) T_(1,2) |

                           1                    2
o3 : Matrix (R[T   ..T   ])  <-- (R[T   ..T   ])
                1,1   1,2            1,1   1,2
i4 : assert(instance(b, Matrix))
i5 : assert(numcols b == 2)

See also

Ways to use this method:


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