Commit b82e7c1
committed
Fix: map local Hessian indices back to global indices in _hessian_color_preprocess
The function was returning I/J in local variable indices but callers use
them as global variable indices (for hessian_lagrangian_structure). This
caused wrong sparsity patterns when a function depends on non-contiguous
variables (e.g., variables 4 and 5 out of 5 total).
https://claude.ai/code/session_01WBu9hZukriWDSSybN9gfBq1 parent f8af260 commit b82e7c1
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
83 | 85 | | |
84 | | - | |
| 86 | + | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
| |||
0 commit comments