Skip to content

Commit

Permalink
Update deprecated calls to Polyhedra.m2 functions.
Browse files Browse the repository at this point in the history
intersection(Matrix, (column) Matrix, Matrix, (column) Matrix)
is now polyhedronFromHData with the same arguments
  • Loading branch information
lkastner committed Aug 16, 2018
1 parent d0103a2 commit 5191b5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions M2/Macaulay2/packages/ToricVectorBundles.m2
Expand Up @@ -1424,7 +1424,7 @@ cartierIndex (List,Fan) := (L,F) -> (
-- Setting up the solution vector by composing the corresponding weights
v := matrix apply(n, i -> (c := rC1_{i}; {-(L#c)}));
-- Computing the degree vector
w := vertices intersection(matrix {toList(n:0)},matrix {{0}},transpose rC1,v);
w := vertices polyhedronFromHData(matrix {toList(n:0)},matrix {{0}},transpose rC1,v);
-- Checking if w also fulfils the equations given by the remaining rays
if numColumns rC != n then (
v = v || matrix apply(toList(n..(numColumns rC)-1), i -> {-(L#(rC_{i}))});
Expand Down Expand Up @@ -1465,7 +1465,7 @@ weilToCartier (List,Fan) := opts -> (L,F) -> (
-- Setting up the solution vector by composing the corresponding weights
v := matrix apply(n, i -> (c := rC1_{i}; {-(L#c)}));
-- Computing the degree vector
w := vertices intersection(Mfull,vfull,transpose rC1,v);
w := vertices polyhedronFromHData(Mfull,vfull,transpose rC1,v);
-- Checking if w also fulfils the equations given by the remaining rays
if numColumns rC != n then (
v = v || matrix apply(toList(n..(numColumns rC)-1), i -> {-(L#(rC_{i}))});
Expand Down

0 comments on commit 5191b5d

Please sign in to comment.