Skip to content

Commit

Permalink
corrected degree handling in RingMap ** Module
Browse files Browse the repository at this point in the history
  • Loading branch information
mahrud committed Feb 13, 2024
1 parent 29cf7d2 commit c33f7aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion M2/Macaulay2/m2/ringmap.m2
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ RingMap Module := Module => (f, M) -> (
-- misc
tensor(RingMap, Module) := Module => {} >> opts -> (f, M) -> (
if source f =!= ring M then error "expected module over source ring";
subquotient((target f)^(-degrees ambient M),
tar := - apply(degrees ambient M, f.cache.DegreeMap);
subquotient((target f)^tar,
if M.?generators then f M.generators,
if M.?relations then f M.relations))
RingMap ** Module := Module => (f, M) -> tensor(f, M)
Expand Down

0 comments on commit c33f7aa

Please sign in to comment.