We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06554a7 commit f0134abCopy full SHA for f0134ab
include/proxsuite/proxqp/dense/model.hpp
@@ -120,9 +120,12 @@ struct Model
120
H.rows(), dim, "H has not the expected number of rows.");
121
PROXSUITE_CHECK_ARGUMENT_SIZE(
122
H.cols(), dim, "H has not the expected number of cols.");
123
- PROXSUITE_THROW_PRETTY((!H.isApprox(H.transpose(), 0.0)),
124
- std::invalid_argument,
125
- "H is not symmetric.");
+ PROXSUITE_THROW_PRETTY(
+ (!H.isApprox(
+ H.transpose(),
126
+ std::numeric_limits<typename decltype(H)::Scalar>::epsilon())),
127
+ std::invalid_argument,
128
+ "H is not symmetric.");
129
}
130
if (A.size()) {
131
0 commit comments