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)
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)