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 b0adb45 commit fb22ce5Copy full SHA for fb22ce5
src/promote.jl
@@ -27,9 +27,9 @@ function MA.promote_operation(
27
U = MA.promote_operation(op, S, T)
28
return polynomialtype(promote_type(monomialtype(PT), monomialtype(QT)), U)
29
end
30
-function MA.promote_operation(::typeof(*), MT::Type{<:AbstractMonomialLike},
31
- ::Type{<:AbstractMonomialLike})
32
- return monomialtype(MT)
+function MA.promote_operation(::typeof(*), MT1::Type{<:AbstractMonomialLike},
+ MT2::Type{<:AbstractMonomialLike})
+ return typeof(constantmonomial(MT1) * constantmonomial(MT2))
33
34
function MA.promote_operation(::typeof(*), TT::Type{<:AbstractTermLike{S}},
35
ST::Type{<:AbstractTermLike{T}}) where {S, T}
0 commit comments