Skip to content

Commit

Permalink
fixed variable errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aryamanmaithani committed Jun 2, 2024
1 parent 9cb1b06 commit 8a671cf
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions GLIdeals.m2
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ generateIlambda(ZZ,ZZ,List,PolynomialRing) := (n,m,lam,S) -> (
ideal mingens J
)

mingensILambda = method()
mingensILambda(Matrix, List) := (X, lam) - (
mingensILambda = method() -- TODO: Make it accept Partitions as well
mingensILambda(Matrix, List) := (X, lam) -> (
myHookLength := P -> (
-- compute prod (P_i - P_j + j - i) / (j - i) for all i < j
num := 1;
Expand All @@ -51,23 +51,22 @@ mingensILambda(Matrix, List) := (X, lam) - (
return num / den;
);

lam := local lam;
size := #lam;

r := numRows X;
c := numColumns X;
min_size := min(r, c);
max_size := max(r, c);
minSize := min(r, c);
maxSize := max(r, c);

if min_size < size then(
error "Partition is too large for the matrix";
);

lam = lam | apply(min_size - size, i -> 0); -- make it size min_size
dimension := myHookLength(lam);
lam = lam | apply(max_size - min_size, i -> 0); -- make it size max_size
return dimension * myHookLength(lam);
)
P := lam | apply(minSize - size, i -> 0); -- make it size min_size
dimension := myHookLength(P);
P = P | apply(maxSize - minSize, i -> 0); -- make it size max_size
return dimension * myHookLength(P);
);
-----

beginDocumentation()
Expand Down

0 comments on commit 8a671cf

Please sign in to comment.