File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -66,21 +66,6 @@ function _hessian_color_preprocess(
6666 return I, J, result
6767 end
6868
69- # Also handle case where we have vertices but no edges (diagonal-only Hessian)
70- if isempty (I)
71- # Create identity matrix pattern (diagonal only)
72- n = length (local_indices)
73- S = SparseArrays. spdiagm (0 => trues (n))
74- problem = SparseMatrixColorings. ColoringProblem (;
75- structure = :symmetric ,
76- partition = :column ,
77- )
78- tree_result = SparseMatrixColorings. coloring (S, problem, algo)
79- result = ColoringResult (tree_result, local_indices)
80- # I and J are already empty, which is correct for no off-diagonal elements
81- return I, J, result
82- end
83-
8469 global_to_local_idx = seen_idx. nzidx # steal for storage
8570 for k in eachindex (local_indices)
8671 global_to_local_idx[local_indices[k]] = k
You can’t perform that action at this time.
0 commit comments