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 8e55f79 commit 45a99a8Copy full SHA for 45a99a8
src/comparison.jl
@@ -328,6 +328,10 @@ function ordering end
328
ordering(::Type{<:AbstractMonomial}) = Graded{LexOrder}
329
ordering(::Type{P}) where {P} = ordering(monomial_type(P))
330
ordering(p::AbstractPolynomialLike) = ordering(typeof(p))
331
+# Useful for instance to ask ordering given the list
332
+# of variables
333
+ordering(::AbstractVector{T}) where {T} = ordering(T)
334
+ordering(t::Tuple) = ordering(first(t))
335
336
# We reverse the order of comparisons here so that the result
337
# of x < y is equal to the result of Monomial(x) < Monomial(y)
0 commit comments