[solver] Avoid resolving equation involving Matrix

This commit is contained in:
Émilie Feral
2018-10-08 14:48:07 +02:00
committed by LeaNumworks
parent 78ccb69b59
commit 7394c56afd

View File

@@ -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;
}