diff --git a/base/sparse/linalg.jl b/base/sparse/linalg.jl index 4689ff521e5c9..4df1c8c50bacf 100644 --- a/base/sparse/linalg.jl +++ b/base/sparse/linalg.jl @@ -61,8 +61,8 @@ for (f, op, transp) in ((:A_mul_B, :identity, false), if β != 1 β != 0 ? scale!(C, β) : fill!(C, zero(eltype(C))) end - for col = 1:A.n - for k = 1:size(C, 2) + for k = 1:size(C, 2) + for col = 1:A.n if $transp tmp = zero(eltype(C)) @inbounds for j = A.colptr[col]:(A.colptr[col + 1] - 1)