Skip to content

Commit

Permalink
added caching of base in toricBlowup in all cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Devlin-Mallory authored and mahrud committed Aug 29, 2024
1 parent 57446be commit 2b9ff18
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions M2/Macaulay2/packages/NormalToricVarieties/ToricVarieties.m2
Original file line number Diff line number Diff line change
Expand Up @@ -693,13 +693,15 @@ toricBlowup (List, NormalToricVariety, List) := NormalToricVariety => (s, X, v)
if member (s#0,t) then continue
else sort (t | s)
);
return normalToricVariety (rays X, coneList | coneList', CoefficientRing => X.cache.CoefficientRing, Variable => X.cache.Variable)
Z := normalToricVariety (rays X, coneList | coneList', CoefficientRing => X.cache.CoefficientRing, Variable => X.cache.Variable);
Z.cache.toricBlowup = X;
return Z
);
coneList' = for t in clStar list (
if all (s, i -> member (i,t)) then continue
else t | {n}
);
Z := normalToricVariety (rays X | {v}, coneList | coneList', CoefficientRing => X.cache.CoefficientRing, Variable => X.cache.Variable);
Z = normalToricVariety (rays X | {v}, coneList | coneList', CoefficientRing => X.cache.CoefficientRing, Variable => X.cache.Variable);
Z.cache.toricBlowup = X;
Z
);
Expand Down

0 comments on commit 2b9ff18

Please sign in to comment.