We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e20b4dc commit 5dcb21fCopy full SHA for 5dcb21f
1 file changed
src/result.jl
@@ -143,7 +143,7 @@ end
143
function RowColoringResult(S::SparseMatrixCSC, color::Vector{Int})
144
Sᵀ = sparse(transpose(S))
145
group = group_by_color(color)
146
- C = maximum(color)
+ C = length(group) # ncolors
147
I, J, _ = findnz(S)
148
compressed_indices = zeros(Int, nnz(S))
149
for k in eachindex(I, J, compressed_indices)
@@ -359,7 +359,7 @@ function LinearSystemColoringResult(
359
S::SparseMatrixCSC, color::Vector{Int}, decompression_eltype::Type{R}
360
) where {R}
361
362
363
364
# build T such that T * strict_upper_nonzeros(A) = B
365
# and solve a linear least-squares problem
0 commit comments