Skip to content

Commit

Permalink
fixed flattenComplex in Varieties
Browse files Browse the repository at this point in the history
  • Loading branch information
mahrud committed Jun 4, 2024
1 parent e8a913e commit 0fc94f4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/Varieties.m2
Original file line number Diff line number Diff line change
Expand Up @@ -509,9 +509,10 @@ flattenMorphism = f -> (
-- TODO: why doesn't lift(f, ring g) do this automatically?
map(target f ** S, source f ** S, lift(cover f, S)) ** cokernel g)
flattenComplex = C -> (
(lo,hi) := concentration C;
complex(for i from lo+1 to hi list flattenMorphism(C.dd_i), Base => lo)
)
(lo, hi) := C.concentration;
if lo === hi
then complex(flattenModule C_lo, Base => lo)
else complex applyValues(C.dd.map, flattenMorphism))

-- TODO: this is called twice
-- TODO: implement for multigraded ring
Expand Down

0 comments on commit 0fc94f4

Please sign in to comment.