Skip to content

Commit

Permalink
Slight perf optim
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle committed Oct 7, 2024
1 parent 9564688 commit 1db3316
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/decompression.jl
Original file line number Diff line number Diff line change
Expand Up @@ -571,10 +571,10 @@ function decompress!(
B = zeros(T, n + m, length(unique(symmetric_color)))
for c in axes(B, 2)
if haskey(col_color_ind, c) # some columns were colored with c
B[:, c] .+= vcat(zeros(T, n), Bc[:, col_color_ind[c]])
B[(n + 1):(n + m), c] .+= @view Bc[:, col_color_ind[c]]
end
if haskey(row_color_ind, c) # some rows were colored with c
B[:, c] .+= vcat(Br[row_color_ind[c], :], zeros(T, m))
B[1:n, c] .+= @view Br[row_color_ind[c], :]
end
end
new_A = decompress(B, result.symmetric_result)
Expand Down

0 comments on commit 1db3316

Please sign in to comment.