Skip to content

Commit

Permalink
Power
Browse files Browse the repository at this point in the history
  • Loading branch information
soraros committed Jan 19, 2021
1 parent 27dfc4b commit 8123d08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nutils/evaluable.py
Original file line number Diff line number Diff line change
Expand Up @@ -2028,7 +2028,8 @@ def __init__(self, func:asarray, power:asarray):
assert func.shape == power.shape
self.func = func
self.power = power
super().__init__(args=[func,power], shape=func.shape, dtype=float)
dtype = float if func.dtype == power.dtype == int else _jointdtype(func.dtype, power.dtype)
super().__init__(args=[func,power], shape=func.shape, dtype=dtype)

def _simplified(self):
if iszero(self.power):
Expand Down

0 comments on commit 8123d08

Please sign in to comment.