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

zero the array where product of X and Y is stored

This commit is contained in:
kalmar 2017-07-11 16:00:50 +02:00
parent 8d22162504
commit ed023be1fd

View File

@ -318,6 +318,7 @@ end
function mul!{T}(result::AbstractVector{T}, X::AbstractVector{T}, Y::AbstractVector{T}, pm::Array{Int,2}) function mul!{T}(result::AbstractVector{T}, X::AbstractVector{T}, Y::AbstractVector{T}, pm::Array{Int,2})
z = zero(T) z = zero(T)
result .= z
for (j,y) in enumerate(Y) for (j,y) in enumerate(Y)
if y != z if y != z
for (i, index) in enumerate(pm[:,j]) for (i, index) in enumerate(pm[:,j])