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 b51307b commit f6064feCopy full SHA for f6064fe
src/comparison.jl
@@ -328,7 +328,9 @@ ordering(p::AbstractPolynomialLike) = ordering(typeof(p))
328
329
# We reverse the order of comparisons here so that the result
330
# of x < y is equal to the result of Monomial(x) < Monomial(y)
331
-function compare(
+# Without `Base.@pure`, TypedPolynomials allocates on Julia v1.6
332
+# with `promote(x * y, x)`
333
+Base.@pure function compare(
334
v1::AbstractVariable,
335
v2::AbstractVariable,
336
::Type{<:AbstractMonomialOrdering},
0 commit comments