From 46832a44a14472bef6099ca13dd3b370958e2bda Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Thu, 2 Jul 2015 11:18:06 -0500 Subject: [PATCH] frexp() returns integers as exponents --- pyopencl/clmath.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyopencl/clmath.py b/pyopencl/clmath.py index bbe4524d..bd9290d6 100644 --- a/pyopencl/clmath.py +++ b/pyopencl/clmath.py @@ -146,7 +146,7 @@ def frexp(arg, queue=None): `arg == significand * 2**exponent`. """ sig = arg._new_like_me(queue=queue) - expt = arg._new_like_me(queue=queue) + expt = arg._new_like_me(queue=queue, dtype=np.int32) _frexp(sig, expt, arg, queue=queue) return sig, expt -- GitLab