[poincare/expression_node] Fix ExpresssionNode::Type ordering

A Multiplication whose children are all real or ComplexCartesian are
multiplied to form a single ComplexCartesian. That step of shallowReduce
assumed that the last child is a ComplexCartesian. Since a Unit is now
considered as real, the previous assumption can be maintained be
reordering the ExpresssionNode::Type.
This commit is contained in:
Ruben Dashyan
2020-02-06 11:10:37 +01:00
committed by Léa Saviot
parent 4a6b633c74
commit e39ad9d923

View File

@@ -95,6 +95,7 @@ public:
Subtraction,
Sum,
Unit,
ComplexCartesian,
ConfidenceInterval,
@@ -104,7 +105,6 @@ public:
MatrixTranspose,
PredictionInterval,
Matrix,
Unit,
EmptyExpression
};