From 8123d089050f6a0b2e12f42f57e1a2566a6f0af5 Mon Sep 17 00:00:00 2001 From: sora <210at85@gmail.com> Date: Wed, 23 Dec 2020 06:44:33 +0100 Subject: [PATCH] Power --- nutils/evaluable.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nutils/evaluable.py b/nutils/evaluable.py index 173876d63..33347a69c 100644 --- a/nutils/evaluable.py +++ b/nutils/evaluable.py @@ -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):