(self, other, out, stream=None)
return out
Divides an array by another array.
Divides an array by another array.
Divides an array by another array .
def _div(self, other, out, stream=None):
        """Divides an array by another array."""

        if not self.flags.forc or not other.flags.forc:
            raise RuntimeError(
                "only contiguous arrays may " "be used as arguments to this operation"
            )

        assert self.shape == other.shape

        func = elementwise.get_binary_op_kernel(self.dtype, other.dtype, out.dtype, "/")
        func.prepared_async_call(
            self._grid,
            self._block,
            stream,
            self.gpudata,
            other.gpudata,
            out.gpudata,
            self.mem_size,
        )

        return out
def _div ( self , other , out , stream = None ) : if not self . flags . forc or not other . flags . forc : raise RuntimeError ( "only contiguous arrays may " "be used as arguments to this operation" ) assert self . shape == other . shape func = elementwise . get_binary_op_kernel ( self . dtype , other . dtype , out . dtype , "/" ) func . prepared_async_call ( self . _grid , self . _block , stream , self . gpudata , other . gpudata , out . gpudata , self . mem_size , ) return out