From bb9583d6ddb3f6287e6d35b0093b4258f77593f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Tue, 11 Sep 2018 17:49:57 +0200 Subject: [PATCH] [solver] When resolving linear system, we count on the side effect of rank which has thus to be done in-place --- apps/solver/equation_store.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/solver/equation_store.cpp b/apps/solver/equation_store.cpp index 54fe8caf8..6052cf424 100644 --- a/apps/solver/equation_store.cpp +++ b/apps/solver/equation_store.cpp @@ -188,7 +188,7 @@ EquationStore::Error EquationStore::resolveLinearSystem(Expression exactSolution Ab.setDimensions(m, n+1); // Compute the rank of (A | b) - int rankAb = Ab.rank(*context, angleUnit); + int rankAb = Ab.rank(*context, angleUnit, true); // Initialize the number of solutions m_numberOfSolutions = INT_MAX;