mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2024-09-05 14:46:44 +02:00
fix: zero result coeffs before jumping into loopy mul!
This commit is contained in:
parent
8463b928cb
commit
dd518574ff
@ -327,6 +327,7 @@ function mul!{T}(X::AbstractVector{T}, Y::AbstractVector{T},
|
|||||||
end
|
end
|
||||||
|
|
||||||
function mul!(result::GroupRingElem, X::GroupRingElem, Y::GroupRingElem)
|
function mul!(result::GroupRingElem, X::GroupRingElem, Y::GroupRingElem)
|
||||||
|
result.coeffs *= 0
|
||||||
mul!(X.coeffs, Y.coeffs, parent(X).pm, result.coeffs)
|
mul!(X.coeffs, Y.coeffs, parent(X).pm, result.coeffs)
|
||||||
return result
|
return result
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user