From 0d9a7523eca6f738c6ef1a03c275da6f93a4ad2b Mon Sep 17 00:00:00 2001 From: Alexander Demin Date: Wed, 14 Feb 2024 17:57:45 +0300 Subject: [PATCH] ordering(poly) --- src/var.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/var.jl b/src/var.jl index 52877ac..b7eb350 100644 --- a/src/var.jl +++ b/src/var.jl @@ -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