File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
include/proxsuite/proxqp/dense/preconditioner Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -89,8 +89,8 @@ ruiz_scale_qp_in_place( //
8989 T aux = sqrt (std::max ({
9090 infty_norm (H.col (k).head (k)),
9191 infty_norm (H.row (k).tail (n - k)),
92- infty_norm (A.col (k)),
93- infty_norm (C.col (k)),
92+ n_eq > 0 ? infty_norm (A.col (k)) : T ( 0 ),
93+ n_in > 0 ? infty_norm (C.col (k)) : T ( 0 ),
9494 }));
9595 if (aux == T (0 )) {
9696 delta (k) = T (1 );
@@ -104,8 +104,8 @@ ruiz_scale_qp_in_place( //
104104 T aux = sqrt (std::max ({
105105 infty_norm (H.col (k).head (k)),
106106 infty_norm (H.col (k).tail (n - k)),
107- infty_norm (A.col (k)),
108- infty_norm (C.col (k)),
107+ n_eq > 0 ? infty_norm (A.col (k)) : T ( 0 ),
108+ n_in > 0 ? infty_norm (C.col (k)) : T ( 0 ),
109109 }));
110110 if (aux == T (0 )) {
111111 delta (k) = T (1 );
@@ -118,8 +118,8 @@ ruiz_scale_qp_in_place( //
118118
119119 T aux = sqrt (std::max ({
120120 infty_norm (H.col (k)),
121- infty_norm (A.col (k)),
122- infty_norm (C.col (k)),
121+ n_eq > 0 ? infty_norm (A.col (k)) : T ( 0 ),
122+ n_in > 0 ? infty_norm (C.col (k)) : T ( 0 ),
123123 }));
124124 if (aux == T (0 )) {
125125 delta (k) = T (1 );
You can’t perform that action at this time.
0 commit comments