Synopsis:
sum C -- yields the sum of the modules in a chain complex.
The degrees of the components are preserved.
i1 : R = ZZ/101[a..d]; |
i2 : C = res coker vars R |
i3 : sum C |
i4 : degrees oo |
See also:
Code:
-- ../../../Macaulay2/m2/chaincomplexes.m2:86 sum ChainComplex := Module => C -> directSum apply(sort spots C, i -> C_i)