Skip to content

Commit f376780

Browse files
authored
Update src/decompression.jl
1 parent 93ae6ff commit f376780

1 file changed

Lines changed: 12 additions & 14 deletions

File tree

src/decompression.jl

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -465,20 +465,18 @@ function decompress_single_color!(
465465
rvS = rowvals(S)
466466
for j in group[c]
467467
for k in nzrange(S, j)
468-
if lower_index <= compressed_indices[k] <= upper_index
469-
l = compressed_indices[k] - offset
470-
i = rvS[k]
471-
if i == j
472-
# Recover the diagonal coefficients of A
473-
A[i, i] = b[l]
474-
else
475-
# Recover the off-diagonal coefficients of A
476-
if in_triangle(i, j, uplo)
477-
A[i, j] = b[l]
478-
end
479-
if in_triangle(j, i, uplo)
480-
A[j, i] = b[l]
481-
end
468+
l = compressed_indices[k] - offset
469+
i = rvS[k]
470+
if i == j
471+
# Recover the diagonal coefficients of A
472+
A[i, i] = b[l]
473+
else
474+
# Recover the off-diagonal coefficients of A
475+
if in_triangle(i, j, uplo)
476+
A[i, j] = b[l]
477+
end
478+
if in_triangle(j, i, uplo)
479+
A[j, i] = b[l]
482480
end
483481
end
484482
end

0 commit comments

Comments
 (0)