Skip to content

Commit

Permalink
Fix MonomialOrdering constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Jun 29, 2023
1 parent 39df429 commit cfed019
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Rings/orderings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,14 @@ mutable struct MonomialOrdering{S}
is_total::Bool
is_total_is_known::Bool
canonical_matrix::ZZMatrix
end

function MonomialOrdering(R::S, o::AbsGenOrdering) where S
return MonomialOrdering{S}(R, o, false, false)
function MonomialOrdering(R::S, o::AbsGenOrdering) where {S}
return new{S}(R, o, false, false)
end

function MonomialOrdering(R::S, o::AbsGenOrdering, is_total::Bool) where {S}
return new{S}(R, o, is_total, true)
end
end

base_ring(a::MonomialOrdering) = a.R
Expand Down

0 comments on commit cfed019

Please sign in to comment.