Skip to content

Commit 47f3ef9

Browse files
committed
More fixes!
1 parent 98296d0 commit 47f3ef9

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

src/decompression.jl

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ end
724724
# Bc::AbstractMatrix,
725725
# result::StarSetBicoloringResult,
726726
# )
727-
# (; ag, S, A_indices, compressed_indices, pos_Bc) = result
727+
# (; S, A_indices, compressed_indices, pos_Bc) = result
728728
# fill!(A, zero(eltype(A)))
729729

730730
# ind_Br = 0
@@ -754,7 +754,7 @@ function decompress!(
754754
Bc::AbstractMatrix,
755755
result::StarSetBicoloringResult,
756756
)
757-
(; ag, A_indices, compressed_indices, pos_Bc) = result
757+
(; A_indices, compressed_indices, pos_Bc) = result
758758
nzA = nonzeros(A)
759759
for k in 1:pos_Bc
760760
nzA[A_indices[k]] = Bc[compressed_indices[k]]
@@ -774,7 +774,6 @@ function decompress!(
774774
result::TreeSetBicoloringResult,
775775
) where {R<:Real}
776776
(;
777-
ag,
778777
symmetric_color,
779778
symmetric_to_row,
780779
symmetric_to_column,
@@ -783,7 +782,6 @@ function decompress!(
783782
nt,
784783
buffer,
785784
) = result
786-
(; S) = ag
787785

788786
m, n = size(A)
789787
fill!(A, zero(R))
@@ -801,6 +799,7 @@ function decompress!(
801799

802800
# Reset the buffer to zero for all vertices in the tree (except the root)
803801
for pos in first:last
802+
(vertex, _) = reverse_bfs_orders[pos]
804803
buffer_right_type[vertex] = zero(R)
805804
end
806805
# Reset the buffer to zero for the root vertex
@@ -831,7 +830,6 @@ function decompress!(
831830
result::TreeSetBicoloringResult,
832831
) where {R<:Real}
833832
(;
834-
ag,
835833
symmetric_color,
836834
symmetric_to_column,
837835
symmetric_to_row,
@@ -841,7 +839,6 @@ function decompress!(
841839
A_indices,
842840
buffer,
843841
) = result
844-
(; S) = ag
845842

846843
m, n = size(A)
847844
A_colptr = A.colptr
@@ -864,6 +861,7 @@ function decompress!(
864861

865862
# Reset the buffer to zero for all vertices in the tree (except the root)
866863
for pos in first:last
864+
(vertex, _) = reverse_bfs_orders[pos]
867865
buffer_right_type[vertex] = zero(R)
868866
end
869867
# Reset the buffer to zero for the root vertex

src/result.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,11 @@ function TreeSetBicoloringResult(
754754
(leaf, neighbor) = reverse_bfs_orders[pos]
755755
index += 1
756756

757+
i = leaf
758+
j = neighbor
759+
col_i = view(rv, nzrange(S, i))
760+
col_j = view(rv, nzrange(S, j))
761+
757762
#! format: off
758763
# S[i,j] is in the lower triangular part of S
759764
if in_triangle(i, j, :L)

0 commit comments

Comments
 (0)