Skip to content

Commit

Permalink
ordering(poly) (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
sumiya11 authored Feb 14, 2024
1 parent 88f7e3f commit 5e0a70c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/var.jl
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ end

MP.monomial(v::Variable) = Monomial(v)
MP.variables(v::Variable) = [v]
MP.ordering(::Variable{V,M}) where {V,M} = M
MP.ordering(v::Variable) = MP.ordering(typeof(v))
MP.ordering(::Type{Variable{V,M}}) where {V,M} = M

iscomm(::Type{Variable{C}}) where {C} = C

Expand Down

0 comments on commit 5e0a70c

Please sign in to comment.