Skip to content

Commit

Permalink
Addlow multiplication with Polynomial
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Jun 20, 2024
1 parent 91791ed commit 0ba3ca8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/arithmetic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@ end
function Base.:(-)(p::_AE, q::_AE)
return MA.operate_to!(SA._preallocate_output(-, p, q), -, p, q)
end

Base.:(*)(p::Union{_APL,_AE}, q::Polynomial{B}) where {B} = *(p, algebra_element(q))
function Base.:(*)(α, p::Polynomial{B}) where {B}
return _algebra_element(MP.term(α, p.monomial), B)
end

0 comments on commit 0ba3ca8

Please sign in to comment.