def ldexp(significand, exponent, queue=None): """Return a new array of floating point values composed from the entries of `significand` and `exponent`, paired together as `result = significand * 2**exponent`. """ result = significand._new_like_me() knl = elementwise.get_ldexp_kernel(significand.context) knl(queue or significand.queue, significand._global_size, significand._local_size, significand.data, exponent.data, result.data, significand.mem_size) return result
def _ldexp(result, sig, exp): return elementwise.get_ldexp_kernel(result.context)
def _ldexp(result, sig, exp): return elementwise.get_ldexp_kernel(result.context, result.dtype, sig.dtype, exp.dtype)