예제 #1
0
파일: array.py 프로젝트: stefanv/PyOpenCL
    def _div(self, out, other, queue=None):
        """Divides an array by another array."""

        assert self.shape == other.shape

        return elementwise.get_divide_kernel(self.context,
                self.dtype, other.dtype, out.dtype)
예제 #2
0
파일: array.py 프로젝트: sys-git/pyopencl
    def _div(out, self, other, queue=None):
        """Divides an array by another array."""

        assert self.shape == other.shape

        return elementwise.get_divide_kernel(self.context, self.dtype,
                                             other.dtype, out.dtype)