Skip to content

Commit

Permalink
frexp() returns integers as exponents
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jul 2, 2015
1 parent 0913c42 commit 46832a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyopencl/clmath.py
Expand Up @@ -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

Expand Down

0 comments on commit 46832a4

Please sign in to comment.