Skip to content

Commit

Permalink
improve cache locality in sparse * dense (JuliaLang#21829)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC authored May 13, 2017
1 parent b51b42e commit b1f668d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/sparse/linalg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b1f668d

Please sign in to comment.