mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[solver] Fix resolveLinearSystem (special case: no variable)
This commit is contained in:
@@ -193,7 +193,7 @@ EquationStore::Error EquationStore::resolveLinearSystem(Expression exactSolution
|
||||
Preferences::AngleUnit angleUnit = Preferences::sharedPreferences()->angleUnit();
|
||||
// n unknown variables
|
||||
int n = 0;
|
||||
while (m_variables[n++][0] != 0) {}
|
||||
while (m_variables[n][0] != 0) { n++; }
|
||||
int m = numberOfDefinedModels(); // m equations
|
||||
/* Create the matrix (A | b) for the equation Ax=b */
|
||||
Matrix Ab;
|
||||
|
||||
Reference in New Issue
Block a user