From 7394c56afdef0f892c500f81856bb9db729458b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Mon, 8 Oct 2018 14:48:07 +0200 Subject: [PATCH] [solver] Avoid resolving equation involving Matrix --- apps/solver/equation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/solver/equation.cpp b/apps/solver/equation.cpp index 2620797d0..c19653ae3 100644 --- a/apps/solver/equation.cpp +++ b/apps/solver/equation.cpp @@ -24,7 +24,7 @@ void Equation::tidy() { Expression Equation::standardForm(Context * context) const { if (m_standardForm.isUninitialized()) { const Expression e = expression(context); - if (e.recursivelyMatches([](const Expression e, Context & context) { return e.type() == ExpressionNode::Type::Undefined || e.type() == ExpressionNode::Type::Infinity; }, *context)) { + if (e.recursivelyMatches([](const Expression e, Context & context) { return e.type() == ExpressionNode::Type::Undefined || e.type() == ExpressionNode::Type::Infinity || Expression::IsMatrix(e, context); }, *context)) { m_standardForm = Undefined(); return m_standardForm; }