Skip to content

Commit

Permalink
fix typos in orderings (#701)
Browse files Browse the repository at this point in the history
  • Loading branch information
fieker committed Sep 27, 2021
1 parent 7af3d01 commit 25a0e96
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Rings/mpoly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,8 @@ end
Compute a weight ordering with a unique weight matrix.
"""
function simplify(M::MonomialOrdering)
ww = simplify_weight_matrix(weights(M))
function Hecke.simplify(M::MonomialOrdering)
ww = simplify_weight_matrix(M.o)
return MonomialOrdering(M.R, ordering(1:ncols(ww), ww))
end

Expand Down Expand Up @@ -450,11 +450,11 @@ end

import Base.==
function ==(M::MonomialOrdering, N::MonomialOrdering)
return simplify(M).o.wgt == simplify(N).o.wgt
return Hecke.simplify(M).o.wgt == Hecke.simplify(N).o.wgt
end

function Base.hash(M::MonomialOrdering, u::UInt)
return hash(simplify(M).o.wgt, u)
return hash(Hecke.simplify(M).o.wgt, u)
end

end # module Orderings
Expand Down

0 comments on commit 25a0e96

Please sign in to comment.