Skip to content

Commit

Permalink
reinstate degrees for promoteFromMap
Browse files Browse the repository at this point in the history
  • Loading branch information
pzinn committed Sep 23, 2024
1 parent 1674b93 commit 0cab851
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion M2/Macaulay2/m2/newring.m2
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ promoteFromMap RingMap := f -> (
promote(Matrix,R,S) :=
promote(MutableMatrix,R,S) := -- doesn't work, cf https://github.com/Macaulay2/M2/issues/2192
promote(Module,R,S) := (M,R1,S1) -> f ** M; -- TODO rethink carefully -- should it be f M ?
-- promote(List,R,S) := (L,R1,S1) -> apply(L,f.cache.DegreeMap); -- reinstate
promote(List,R,S) := (L,R1,S1) -> apply(L,f.cache.DegreeMap); -- reinstate
)
promoteFromMap (Ring,Ring) := (R,S) -> promoteFromMap map(S,R)

Expand Down
2 changes: 1 addition & 1 deletion M2/Macaulay2/packages/CotangentSchubert/cotangent.m2
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ defineB = (FF,n,Kth,Equiv) -> ( -- TODO remove FF
-if Equiv then elem(k,drop(gens FF,1)) else if Kth then binomial(n,k) else 0);
BB := BB0/J;
BBs#(n,Kth,Equiv) = BB;
if Equiv then promoteFromMap(map(BB,if Kth then FK_0 else FH_0,{FF_0}));
);
BBs#(n,Kth,Equiv)
)
Expand Down Expand Up @@ -246,7 +247,6 @@ setupCotangent = cotOpts >> curCotOpts -> dims0 -> (
);
if curCotOpts.Presentation === Borel then (
BB := defineB(FF,n,curCotOpts.Ktheory,curCotOpts.Equivariant);
if curCotOpts.Equivariant then promoteFromMap(map(BB,FF0,{FF_0})); -- TODO move elsewhere
x := getSymbol "x";
-- Chern classes
inds := splice apply(d+1, i -> apply(1..dimdiffs#i,j->(j,i)));
Expand Down

0 comments on commit 0cab851

Please sign in to comment.