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.
2 parents 9a0f7bf + 22a7b8e commit e42986dCopy full SHA for e42986d
src/promote.jl
@@ -52,7 +52,7 @@ function MA.promote_operation(
52
end
53
function MA.promote_operation(::typeof(*), MT1::Type{<:AbstractMonomialLike},
54
MT2::Type{<:AbstractMonomialLike})
55
- return typeof(constantmonomial(MT1) * constantmonomial(MT2))
+ return promote_type(monomialtype(MT1), monomialtype(MT2))
56
57
function MA.promote_operation(::typeof(*), TT::Type{<:AbstractTermLike{S}},
58
ST::Type{<:AbstractTermLike{T}}) where {S, T}
0 commit comments