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:
parent
8d22162504
commit
ed023be1fd
@ -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])
|
||||||
|
Loading…
Reference in New Issue
Block a user