Skip to content
Snippets Groups Projects
Commit 1feaee69 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Teach IdentityMapper about floor_div.

parent 72a54e48
Branches
Tags
No related merge requests found
......@@ -205,6 +205,8 @@ class IdentityMapperBase(object):
return expr.__class__(self.rec(expr.numerator, *args),
self.rec(expr.denominator, *args))
map_floor_div = map_quotient
def map_power(self, expr, *args):
return expr.__class__(self.rec(expr.base, *args),
self.rec(expr.exponent, *args))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment