From ed023be1fd7db5e6fb5e5f64e818e104478f830e Mon Sep 17 00:00:00 2001 From: kalmar Date: Tue, 11 Jul 2017 16:00:50 +0200 Subject: [PATCH] zero the array where product of X and Y is stored --- src/GroupRings.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/GroupRings.jl b/src/GroupRings.jl index 312a385..318870f 100644 --- a/src/GroupRings.jl +++ b/src/GroupRings.jl @@ -318,6 +318,7 @@ end function mul!{T}(result::AbstractVector{T}, X::AbstractVector{T}, Y::AbstractVector{T}, pm::Array{Int,2}) z = zero(T) + result .= z for (j,y) in enumerate(Y) if y != z for (i, index) in enumerate(pm[:,j])