예제 #1
0
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
예제 #2
0
파일: clmath.py 프로젝트: stefanv/PyOpenCL
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
예제 #3
0
파일: clmath.py 프로젝트: Gormse/MacMiner
def _ldexp(result, sig, exp):
    return elementwise.get_ldexp_kernel(result.context)
예제 #4
0
def _ldexp(result, sig, exp):
    return elementwise.get_ldexp_kernel(result.context)
예제 #5
0
파일: clmath.py 프로젝트: hrfuller/pyopencl
def _ldexp(result, sig, exp):
    return elementwise.get_ldexp_kernel(result.context, result.dtype,
                                        sig.dtype, exp.dtype)
예제 #6
0
def _ldexp(result, sig, exp):
    return elementwise.get_ldexp_kernel(result.context, result.dtype,
                                        sig.dtype, exp.dtype)