Skip to content

Commit

Permalink
Min diff
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle committed Oct 7, 2024
1 parent d27f8cf commit 9564688
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/decompression.jl
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ end

function decompress(Br::AbstractMatrix, Bc::AbstractMatrix, result::AbstractColoringResult)
A = respectful_similar(result.A, Base.promote_eltype(Br, Bc))
fill!(A, zero(eltype(A)))
return decompress!(A, Br, Bc, result)
end

Expand Down
4 changes: 3 additions & 1 deletion src/result.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ function row_groups end
"""
group_by_color(color::Vector{Int})
Create a color-indexed `group` containing iterables such that `i ∈ group[c]` iff `color[i] == c`.
Create `group::Vector{Vector{Int}}` such that `i ∈ group[c]` iff `color[i] == c`.
Assumes the colors are contiguously numbered from `1` to some `cmax`.
"""
function group_by_color(color::AbstractVector{<:Integer})
cmin, cmax = extrema(color)
Expand Down

0 comments on commit 9564688

Please sign in to comment.