From 5e0a70cc4cba7f11c62403c1fbea22c17a44f041 Mon Sep 17 00:00:00 2001 From: Alexander Demin <60229118+sumiya11@users.noreply.github.com> Date: Thu, 15 Feb 2024 00:44:07 +0300 Subject: [PATCH] ordering(poly) (#151) --- 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