Skip to content

Commit c6d7cbd

Browse files
committed
wip...
1 parent 2758337 commit c6d7cbd

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

src/decompression.jl

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -716,31 +716,31 @@ end
716716

717717
## StarSetBicoloringResult
718718

719-
function decompress!(
720-
A::AbstractMatrix,
721-
Br::AbstractMatrix,
722-
Bc::AbstractMatrix,
723-
result::StarSetBicoloringResult,
724-
)
725-
(; ag, symmetric_color, symmetric_to_row, symmetric_to_column, star_set) = result
726-
(; star, hub, spokes) = star_set
727-
(; S) = ag
728-
fill!(A, zero(eltype(A)))
729-
730-
m, n = size(A)
731-
for s in eachindex(hub, spokes)
732-
j = abs(hub[s])
733-
cj = symmetric_color[j]
734-
for i in spokes[s]
735-
if in_triangle(i, j, :L)
736-
A[i - n, j] = Bc[i - n, symmetric_to_column[cj]]
737-
else
738-
A[j - n, i] = Br[symmetric_to_row[cj], i]
739-
end
740-
end
741-
end
742-
return A
743-
end
719+
# function decompress!(
720+
# A::AbstractMatrix,
721+
# Br::AbstractMatrix,
722+
# Bc::AbstractMatrix,
723+
# result::StarSetBicoloringResult,
724+
# )
725+
# (; ag, symmetric_color, symmetric_to_row, symmetric_to_column, star_set) = result
726+
# (; star, hub, spokes) = star_set
727+
# (; S) = ag
728+
# fill!(A, zero(eltype(A)))
729+
730+
# m, n = size(A)
731+
# for s in eachindex(hub, spokes)
732+
# j = abs(hub[s])
733+
# cj = symmetric_color[j]
734+
# for i in spokes[s]
735+
# if in_triangle(i, j, :L)
736+
# A[i - n, j] = Bc[i - n, symmetric_to_column[cj]]
737+
# else
738+
# A[j - n, i] = Br[symmetric_to_row[cj], i]
739+
# end
740+
# end
741+
# end
742+
# return A
743+
# end
744744

745745
function decompress!(
746746
A::SparseMatrixCSC,

src/interface.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ It is passed as an argument to the main function [`coloring`](@ref).
8585
8686
- [`ADTypes.column_coloring`](@extref ADTypes.column_coloring)
8787
- [`ADTypes.row_coloring`](@extref ADTypes.row_coloring)
88-
- [`ADTypes.coloring`](@extref ADTypes.coloring)
88+
- [`ADTypes.symmetric_coloring`](@extref ADTypes.symmetric_coloring)
8989
9090
See their respective docstrings for details.
9191
@@ -343,6 +343,6 @@ function ADTypes.row_coloring(A::AbstractMatrix, algo::GreedyColoringAlgorithm)
343343
return fast_coloring(A, ColoringProblem{:nonsymmetric,:row}(), algo)
344344
end
345345

346-
function ADTypes.coloring(A::AbstractMatrix, algo::GreedyColoringAlgorithm)
346+
function ADTypes.symmetric_coloring(A::AbstractMatrix, algo::GreedyColoringAlgorithm)
347347
return fast_coloring(A, ColoringProblem{:symmetric,:column}(), algo)
348348
end

0 commit comments

Comments
 (0)