mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 05:40:38 +01:00
[poincare/n_ary_expression] Add TODO about mergeSameTypeChildrenInPlace
This commit is contained in:
committed by
Émilie Feral
parent
965e3b1d9a
commit
f224ac31e3
@@ -143,7 +143,10 @@ Expression Addition::shallowReduce(ExpressionNode::ReductionContext reductionCon
|
||||
}
|
||||
|
||||
/* Step 1: Addition is associative, so let's start by merging children which
|
||||
* are additions. */
|
||||
* are additions.
|
||||
* TODO If the parent Expression is an Addition, one should perhaps
|
||||
* return now and let the parent do the reduction.
|
||||
*/
|
||||
mergeSameTypeChildrenInPlace();
|
||||
|
||||
const int childrenCount = numberOfChildren();
|
||||
|
||||
@@ -504,7 +504,10 @@ Expression Multiplication::privateShallowReduce(ExpressionNode::ReductionContext
|
||||
}
|
||||
|
||||
/* Step 1: MultiplicationNode is associative, so let's start by merging children
|
||||
* which also are multiplications themselves. */
|
||||
* which also are multiplications themselves.
|
||||
* TODO If the parent Expression is a Multiplication, one should perhaps
|
||||
* return now and let the parent do the reduction.
|
||||
*/
|
||||
mergeSameTypeChildrenInPlace();
|
||||
|
||||
Context * context = reductionContext.context();
|
||||
|
||||
Reference in New Issue
Block a user