HH^ZZ SumOfTwists -- coherent sheaf cohomology
Synopsis:
To discard the part of the module M of degree less than d, use truncate(d,M).
Use HH^i(F(>d)) to request the twists strictly greater than n.
Note: use HH^i(F(*)) to try to compute the whole graded module. The
computation will fail if the module is not finitely generated.
See also:
HH -- general homology and cohomology functor
HH^ZZ CoherentSheaf -- coherent sheaf cohomology
Code:
-- ../../../Macaulay2/m2/varieties.m2:192-197
cohomology(ZZ,SumOfTwists) := Module => opts -> (i,S) -> (
F := S#"object";
R := ring F;
if not isAffineRing R then error "expected coherent sheaf over a variety over a field";
b := first S#"bound";
if i == 0 then globalSectionsModule(F,b) else HH^(i+1)(module F,Degree => b))