[top][index]
search for:

GradedModule [...] -- degree shift

Synopsis:

  • Operator: symbol " " -- blank operator for adjacent expressions
  • Input:
  • an instance of class GradedModule.
  • an instance of class Array.
  • Output:
  • an instance of class GradedModule.
  • C[i] -- shifts the graded module C, producing a new graded module D in which D_j is C_(i+j).

    Code:

         -- ../../../Macaulay2/m2/gradedmodules.m2:265-271
         GradedModule Array := GradedModule => (C,A) -> (
              if # A =!= 1 then error "expected array of length 1";
              n := A#0;
              D := new GradedModule;
              D.ring = C.ring;
              scan(spots C, i -> D#(i-n) = C#i);
              D)

    [top][index]
    search for: