示例#1
0
文件: array.py 项目: stefanv/PyOpenCL
 def _axpbz(out, afac, a, other, queue=None):
     """Compute ``out = afac * a + other``, where `other` is a scalar."""
     return elementwise.get_axpbz_kernel(out.context, out.dtype)
示例#2
0
文件: array.py 项目: EyNuel/pyopencl
 def _axpbz(out, a, x, b, queue=None):
     """Compute ``z = a * x + b``, where `b` is a scalar."""
     a = np.array(a)
     b = np.array(b)
     return elementwise.get_axpbz_kernel(out.context, a.dtype, x.dtype, b.dtype, out.dtype)
示例#3
0
文件: array.py 项目: sys-git/pyopencl
 def _axpbz(out, a, x, b, queue=None):
     """Compute ``z = a * x + b``, where `b` is a scalar."""
     a = np.array(a)
     b = np.array(b)
     return elementwise.get_axpbz_kernel(out.context, a.dtype, x.dtype,
                                         b.dtype, out.dtype)
示例#4
0
 def _axpbz(out, afac, a, other, queue=None):
     """Compute ``out = afac * a + other``, where `other` is a scalar."""
     return elementwise.get_axpbz_kernel(out.context, out.dtype)