Esempio n. 1
0
    def _rdiv_scalar(self, out, other, queue=None):
        """Divides an array by a scalar::

           y = n / self
        """

        assert self.dtype == numpy.float32

        return elementwise.get_rdivide_elwise_kernel(self.context, self.dtype)
Esempio n. 2
0
    def _rdiv_scalar(self, out, other, queue=None):
        """Divides an array by a scalar::

           y = n / self
        """

        assert self.dtype == numpy.float32

        return elementwise.get_rdivide_elwise_kernel(self.context, self.dtype)
Esempio n. 3
0
 def _rdiv_scalar(out, ary, other, queue=None):
     return elementwise.get_rdivide_elwise_kernel(
             out.context, ary.dtype)
Esempio n. 4
0
 def _rdiv_scalar(out, ary, other, queue=None):
     other = np.array(other)
     return elementwise.get_rdivide_elwise_kernel(out.context, ary.dtype,
                                                  other.dtype, out.dtype)
Esempio n. 5
0
 def _rdiv_scalar(out, ary, other, queue=None):
     other = np.array(other)
     return elementwise.get_rdivide_elwise_kernel(out.context, ary.dtype, other.dtype, out.dtype)
Esempio n. 6
0
 def _rdiv_scalar(out, ary, other, queue=None):
     return elementwise.get_rdivide_elwise_kernel(
             out.context, ary.dtype)