Skip to content

Commit 2d209ea

Browse files
pre-commit-ci[bot]jcarpent
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 23c9bd7 commit 2d209ea

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

include/proxsuite/proxqp/dense/utils.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,9 @@ global_dual_residual(const Results<T>& qpresults,
360360
// dual_feasibility_rhs_3 = norm(unscaled(CTz))
361361
//
362362
// dual_residual_scaled = scaled(Hx + g + ATy + CTz)
363-
const isize max_dim = std::max(qpmodel.dim,std::max(qpmodel.n_eq,qpmodel.n_in));
364-
const T sqrt_max_dim(std::sqrt(max_dim)); // for normalizing scalar products
363+
const isize max_dim =
364+
std::max(qpmodel.dim, std::max(qpmodel.n_eq, qpmodel.n_in));
365+
const T sqrt_max_dim(std::sqrt(max_dim)); // for normalizing scalar products
365366

366367
qpwork.dual_residual_scaled = qpwork.g_scaled;
367368
qpwork.CTz.noalias() =

include/proxsuite/proxqp/sparse/solver.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ qp_solve(Results<T>& results,
725725
}
726726
}
727727
T rhs_duality_gap(0);
728-
728+
729729
for (isize iter = 0; iter < settings.max_iter; ++iter) {
730730

731731
results.info.iter_ext += 1;

include/proxsuite/proxqp/sparse/utils.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,8 +641,8 @@ unscaled_primal_dual_residual(
641641
{
642642
isize n = x_e.rows();
643643

644-
const isize max_dim = std::max(data.dim,std::max(data.n_eq,data.n_in));
645-
const T sqrt_max_dim(std::sqrt(max_dim)); // for normalizing scalar products
644+
const isize max_dim = std::max(data.dim, std::max(data.n_eq, data.n_in));
645+
const T sqrt_max_dim(std::sqrt(max_dim)); // for normalizing scalar products
646646

647647
LDLT_TEMP_VEC_UNINIT(T, tmp, n, stack);
648648
dual_residual_scaled = qp_scaled.g.to_eigen();

0 commit comments

Comments
 (0)