Skip to content

Commit

Permalink
promotion
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Dec 15, 2024
1 parent e0f733d commit 7bbc64f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/arithmetic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ for op in [:+, :-, :*]
function Base.$op(p::_AE, q::_AE)
return MA.operate_to!(SA._preallocate_output($op, p, q), $op, p, q)
end
function Base.promote_rule(Q::Type{<:_APL}, P::Type{<:_AE})
return promote_type(Q, MP.polynomial_type(P))
end
end
end
for op in [:+, :-]
Expand Down

0 comments on commit 7bbc64f

Please sign in to comment.