1
0
mirror of https://github.com/kalmarek/GroupRings.jl.git synced 2024-12-29 11:00:28 +01:00

fix: zero result coeffs before jumping into loopy mul!

This commit is contained in:
kalmar 2017-07-10 19:27:28 +02:00
parent 8463b928cb
commit dd518574ff

View File

@ -327,6 +327,7 @@ function mul!{T}(X::AbstractVector{T}, Y::AbstractVector{T},
end
function mul!(result::GroupRingElem, X::GroupRingElem, Y::GroupRingElem)
result.coeffs *= 0
mul!(X.coeffs, Y.coeffs, parent(X).pm, result.coeffs)
return result
end