107 bool box_constraints =
false,
130 if (box_constraints) {
138 z_prev.resize(dim + n_in);
140 switch (dense_backend) {
142 kkt.resize(dim + n_eq, dim + n_eq);
143 ldl.reserve_uninit(dim + n_eq + n_in + dim);
153 isize{
sizeof(isize) } * (n_eq + n_in + dim),
156 dim + n_eq + n_in + dim, n_eq + n_in + dim)) |
160 dim + n_eq + n_in + dim,
163 dim + n_eq + n_in + dim, n_in + dim)) |
171 kkt.resize(dim, dim);
172 ldl.reserve_uninit(dim);
181 isize{
sizeof(isize) } * (n_eq + n_in + dim),
184 dim + n_eq + n_in + dim, n_eq + n_in + dim)) |
188 dim + n_eq + n_in + dim,
191 dim + n_eq + n_in + dim, n_in + dim)) |
202 for (isize i = 0; i < n_in + dim; i++) {
210 dw_aug.resize(dim + n_eq + n_in + dim);
211 rhs.resize(dim + n_eq + n_in + dim);
212 err.resize(dim + n_eq + n_in + dim);
216 Cdx.resize(n_in + dim);
217 alphas.reserve(2 * n_in + 2 * dim);
221 switch (dense_backend) {
223 kkt.resize(dim + n_eq, dim + n_eq);
224 ldl.reserve_uninit(dim + n_eq + n_in);
234 isize{
sizeof(isize) } * (n_eq + n_in),
alignof(isize) } &
236 dim + n_eq + n_in, n_eq + n_in)) |
241 dim + n_eq + n_in, n_in)) |
249 kkt.resize(dim, dim);
250 ldl.reserve_uninit(dim);
259 isize{
sizeof(isize) } * (n_eq + n_in),
alignof(isize) } &
261 dim + n_eq + n_in, n_eq + n_in)) |
265 dim + n_eq + n_in, n_in)) |
277 for (isize i = 0; i < n_in; i++) {
285 dw_aug.resize(dim + n_eq + n_in);
286 rhs.resize(dim + n_eq + n_in);
287 err.resize(dim + n_eq + n_in);