[top][index]
search for:

Module [...] -- make a chain complex from a module

Synopsis:

  • Operator: symbol " " -- blank operator for adjacent expressions
  • Input:
  • an instance of class Module.
  • an instance of class Array.
  • Output:
  • an instance of class ChainComplex.
  • M[n] -- create a chain complex with the module M concentrated in degree -n.

    See also:

  • ChainComplex -- the class of all chain complexes
  • Code:

         -- ../../../Macaulay2/m2/chaincomplexes.m2:816-823
         Module Array := ChainComplex => (M,v) -> (
              if #v =!= 1 then error "expected array of length 1";
              n := v#0;
              if class n =!= ZZ then error "expected [n] with n an integer";
              C := new ChainComplex;
              C.ring = ring M;
              C#-n = M;
              C)

    [top][index]
    search for: