From d1c1ef289c2486419fedb4670aee51c7b9f2f362 Mon Sep 17 00:00:00 2001 From: sora <210at85@gmail.com> Date: Wed, 23 Dec 2020 05:51:03 +0100 Subject: [PATCH] Det --- nutils/evaluable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nutils/evaluable.py b/nutils/evaluable.py index 33347a69c..fc5ab8f2e 100644 --- a/nutils/evaluable.py +++ b/nutils/evaluable.py @@ -1545,7 +1545,7 @@ class Determinant(Array): def __init__(self, func:asarray): assert isarray(func) and func.ndim >= 2 and func.shape[-1] == func.shape[-2] self.func = func - super().__init__(args=[func], shape=func.shape[:-2], dtype=func.dtype) + super().__init__(args=[func], shape=func.shape[:-2], dtype=_jointdtype(func.dtype, float)) def _simplified(self): return self.func._determinant(self.ndim, self.ndim+1)