From 7109a226f0cc6dd7d01eb912561e9a0e9eb1d57a Mon Sep 17 00:00:00 2001 From: Stefano Date: Wed, 13 Jun 2018 11:22:55 +0200 Subject: [PATCH] Fixed bug when updating hessian matrix. My bad, it seemed I did not know the definition of an upper triangular matrix. --- include/OsqpEigen/Solver.tpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/OsqpEigen/Solver.tpp b/include/OsqpEigen/Solver.tpp index 94590a8..3aced19 100644 --- a/include/OsqpEigen/Solver.tpp +++ b/include/OsqpEigen/Solver.tpp @@ -427,7 +427,7 @@ void OsqpEigen::Solver::selectUpperTriangularTriplets(const std::vector= fullMatrixTriplets[i].col()) { + if (fullMatrixTriplets[i].row() <= fullMatrixTriplets[i].col()) { if (upperTriangularTriplets < upperTriangularMatrixTriplets.size()) { upperTriangularMatrixTriplets[upperTriangularTriplets] = fullMatrixTriplets[i]; } else {