Skip to content

Commit

Permalink
Fix some weight matrices.
Browse files Browse the repository at this point in the history
  • Loading branch information
wbhart committed Oct 19, 2021
1 parent 5a0efb7 commit f581579
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Rings/orderings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function weights(a::GenOrdering)
end
if a.ord == :wdeglex || a.ord == Symbol("Singular(Wp)")
return [matrix(ZZ, 1, length(a.vars), a.w);
zero_matrix(ZZ, length(a.vars)-1, 1) identity_matrix(ZZ, length(a.vars)-1)]
identity_matrix(ZZ, length(a.vars)-1) zero_matrix(ZZ, length(a.vars)-1, 1)]
end
if a.ord == :wdegrevlex || a.ord == Symbol("Singular(wp)")
return [matrix(ZZ, 1, length(a.vars), a.w);
Expand All @@ -154,7 +154,7 @@ function weights(a::GenOrdering)
end
if a.ord == :negwdeglex || a.ord == Symbol("Singular(Ws)")
return [-matrix(ZZ, 1, length(a.vars), a.w);
zero_matrix(ZZ, length(a.vars)-1, 1) -identity_matrix(ZZ, length(a.vars)-1)]
-identity_matrix(ZZ, length(a.vars)-1) zero_matrix(ZZ, length(a.vars)-1, 1)]
end
if a.ord == :negwdegrevlex || a.ord == Symbol("Singular(ws)")
return [-matrix(ZZ, 1, length(a.vars), a.w);
Expand Down

0 comments on commit f581579

Please sign in to comment.