We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f04595 commit 61420f1Copy full SHA for 61420f1
src/comparison.jl
@@ -302,6 +302,10 @@ function ordering end
302
ordering(::Type{<:AbstractMonomial}) = Graded{LexOrder}
303
ordering(::Type{P}) where {P} = ordering(monomial_type(P))
304
ordering(p::AbstractPolynomialLike) = ordering(typeof(p))
305
+# Useful for instance to ask ordering given the list
306
+# of variables
307
+ordering(::AbstractVector{T}) where {T} = ordering(T)
308
+ordering(t::Tuple) = ordering(first(t))
309
310
# We reverse the order of comparisons here so that the result
311
# of x < y is equal to the result of Monomial(x) < Monomial(y)
0 commit comments