File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -459,25 +459,24 @@ function decompress_single_color!(
459459 (; S) = ag
460460 uplo == :F && check_same_pattern (A, S)
461461
462- offset = (c - 1 ) * S. n
463- lower_index = offset + 1
462+ lower_index = (c - 1 ) * S. n + 1
464463 upper_index = c * S. n
465464 rvS = rowvals (S)
466465 for j in group[c]
467466 for k in nzrange (S, j)
467+ # Check if the color c is used to recover A[i,j] / A[j,i]
468468 if lower_index <= compressed_indices[k] <= upper_index
469- l = compressed_indices[k] - offset
470469 i = rvS[k]
471470 if i == j
472471 # Recover the diagonal coefficients of A
473- A[i, i] = b[l ]
472+ A[i, i] = b[i ]
474473 else
475474 # Recover the off-diagonal coefficients of A
476475 if in_triangle (i, j, uplo)
477- A[i, j] = b[l ]
476+ A[i, j] = b[i ]
478477 end
479478 if in_triangle (j, i, uplo)
480- A[j, i] = b[l ]
479+ A[j, i] = b[i ]
481480 end
482481 end
483482 end
You can’t perform that action at this time.
0 commit comments