Skip to content

Commit

Permalink
promote in selectVariables
Browse files Browse the repository at this point in the history
  • Loading branch information
pzinn committed Sep 23, 2024
1 parent 17406c8 commit 5d9109b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion M2/Macaulay2/m2/polyrings.m2
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,10 @@ selectVariables(List,PolynomialRing) := (v,R) -> (
o.Variables = o.Variables_v;
o.Degrees = o.Degrees_v;
o = new OptionTable from o;
(S := (coefficientRing R)(monoid [o]),map(R,S,(generators R)_v)))
S := (coefficientRing R)(monoid [o]);
f := map(R,S,(generators R)_v);
promoteFromMap f;
(S,f))

-----------------------------------------------------------------------------

Expand Down

0 comments on commit 5d9109b

Please sign in to comment.