Lower an expression completely This calls the ``lower_once`` method in a loop until nothing changes. This function does not apply any other optimizations (like ``simplify``). Returns ------- expr: output expression See Also
(self)
| 510 | return lowered.setdefault(self._name, out) |
| 511 | |
| 512 | def lower_completely(self) -> Expr: |
| 513 | """Lower an expression completely |
| 514 | |
| 515 | This calls the ``lower_once`` method in a loop |
| 516 | until nothing changes. This function does not |
| 517 | apply any other optimizations (like ``simplify``). |
| 518 | |
| 519 | Returns |
| 520 | ------- |
| 521 | expr: |
| 522 | output expression |
| 523 | |
| 524 | See Also |
| 525 | -------- |
| 526 | Expr.lower_once |
| 527 | Expr._lower |
| 528 | """ |
| 529 | # Lower until nothing changes |
| 530 | expr = self |
| 531 | lowered: dict = {} |
| 532 | while True: |
| 533 | new = expr.lower_once(lowered) |
| 534 | if new._name == expr._name: |
| 535 | break |
| 536 | expr = new |
| 537 | return expr |
| 538 | |
| 539 | def _lower(self): |
| 540 | return |