You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/slack-model.jl
+29-7Lines changed: 29 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -296,6 +296,32 @@ function NLPModels.jac_lin_structure!(
296
296
return rows, cols
297
297
end
298
298
299
+
"""
300
+
relative_columns_indices!(cols, nlp, nj, n, jlow, model_jlow)
301
+
302
+
The input `jlow` should be relative indices within `nlp.model.meta.nln`.
303
+
Add to `cols[nj .+ (1:length(jlow))]` the indices of `n + jind` with `jind` indices of `jlow` relative to `setdiff(nlp.model.meta.nln, nlp.model.meta.jfix)`.
304
+
305
+
This is the 0-allocation version of:
306
+
```
307
+
ind = setdiff(nlp.model.meta.nln, nlp.model.meta.jfix)
0 commit comments