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 342ee47 commit fd4d78cCopy full SHA for fd4d78c
1 file changed
src/arithmetic.jl
@@ -31,6 +31,9 @@ for op in [:+, :-, :*]
31
function Base.$op(p::_AE, q::_AE)
32
return MA.operate_to!(SA._preallocate_output($op, p, q), $op, p, q)
33
end
34
+ function Base.promote_rule(Q::Type{<:_APL}, P::Type{<:_AE})
35
+ return promote_type(Q, MP.polynomial_type(P))
36
+ end
37
38
39
for op in [:+, :-]
0 commit comments