Skip to content

Commit 5e0a70c

Browse files
authored
ordering(poly) (#151)
1 parent 88f7e3f commit 5e0a70c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/var.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ end
145145

146146
MP.monomial(v::Variable) = Monomial(v)
147147
MP.variables(v::Variable) = [v]
148-
MP.ordering(::Variable{V,M}) where {V,M} = M
148+
MP.ordering(v::Variable) = MP.ordering(typeof(v))
149+
MP.ordering(::Type{Variable{V,M}}) where {V,M} = M
149150

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

0 commit comments

Comments
 (0)