Skip to content

Commit 03125c1

Browse files
authored
test: fix compilation issues
1 parent 5a1684c commit 03125c1

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

test/src/sparse_qp_wrapper.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright (c) 2022 INRIA
2+
// Copyright (c) 2022-2023 INRIA
33
//
44
#include <iostream>
55
#include <proxsuite/proxqp/sparse/sparse.hpp>
@@ -6311,7 +6311,7 @@ TEST_CASE(
63116311
SparseMat<T> H_sparse = qp_random.H.sparseView();
63126312
SparseMat<T> A_sparse = qp_random.A.sparseView();
63136313
SparseMat<T> C_sparse = qp_random.C.sparseView();
6314-
T estimate_minimal_eigen_value =
6314+
const T estimate_minimal_eigen_value =
63156315
sparse::estimate_minimal_eigen_value_of_symmetric_matrix<T, I>(
63166316
H_sparse, 1.E-6, 10000);
63176317
qp.init(H_sparse,
@@ -6322,9 +6322,9 @@ TEST_CASE(
63226322
qp_random.l,
63236323
qp_random.u,
63246324
true,
6325-
std::nullopt,
6326-
std::nullopt,
6327-
std::nullopt,
6325+
nullopt,
6326+
nullopt,
6327+
nullopt,
63286328
estimate_minimal_eigen_value);
63296329
DOCTEST_CHECK(std::abs(qp.results.info.minimal_H_eigenvalue_estimate -
63306330
minimal_eigenvalue) <= tol);
@@ -6352,7 +6352,7 @@ TEST_CASE(
63526352
H_sparse, 1.E-6, 10000);
63536353
Eigen::SelfAdjointEigenSolver<dense::Mat<T>> es(qp_random.H,
63546354
Eigen::EigenvaluesOnly);
6355-
T minimal_eigenvalue = T(es.eigenvalues().minCoeff());
6355+
const T minimal_eigenvalue = T(es.eigenvalues().minCoeff());
63566356
qp.init(H_sparse,
63576357
qp_random.g,
63586358
A_sparse,
@@ -6361,11 +6361,11 @@ TEST_CASE(
63616361
qp_random.l,
63626362
qp_random.u,
63636363
true,
6364-
std::nullopt,
6365-
std::nullopt,
6366-
std::nullopt,
6364+
nullopt,
6365+
nullopt,
6366+
nullopt,
63676367
estimate_minimal_eigen_value);
63686368
DOCTEST_CHECK(std::abs(qp.results.info.minimal_H_eigenvalue_estimate -
63696369
minimal_eigenvalue) <= 1.);
63706370
}
6371-
}
6371+
}

0 commit comments

Comments
 (0)