mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[solver] Avoid resolving equation involving Matrix
This commit is contained in:
committed by
LeaNumworks
parent
78ccb69b59
commit
7394c56afd
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user