Skip to content

Commit 51db1b3

Browse files
committed
Fix
1 parent b0a0b8e commit 51db1b3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/comparison.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,14 @@ function Base.cmp(
326326
return cmp(ordering(m1)(), exponents(s1), exponents(s2))
327327
end
328328

329+
function compare(
330+
m1::AbstractMonomial,
331+
m2::AbstractMonomial,
332+
::Type{O},
333+
) where {O<:AbstractMonomialOrdering}
334+
return cmp(m1, m2)
335+
end
336+
329337
# Implement this to make coefficients be compared with terms.
330338
function _cmp_coefficient(a::Real, b::Real)
331339
return cmp(a, b)

0 commit comments

Comments
 (0)