mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[poincare] Sequence: reorder condition (optimization)
This commit is contained in:
@@ -63,7 +63,7 @@ Evaluation<double> SequenceNode::approximate(DoublePrecision p, ApproximationCon
|
||||
|
||||
template<typename T>
|
||||
Evaluation<T> SequenceNode::templatedApproximate(ApproximationContext approximationContext) const {
|
||||
if (childAtIndex(0)->approximate((T)1, approximationContext).isUndefined() || approximationContext.withinReduce()) {
|
||||
if (approximationContext.withinReduce() || childAtIndex(0)->approximate((T)1, approximationContext).isUndefined()) {
|
||||
/* If we're inside a reducing routine, we want to escape the sequence
|
||||
* approximation. Indeed, in order to know that the sequence is well defined
|
||||
* (especially for self-referencing or inter-dependently defined sequences),
|
||||
|
||||
Reference in New Issue
Block a user