(self, other)
Divides an array by an array or a scalar::

        x = self / n
Divides an array by an array or a scalar::
Divides an array by an array or a scalar ::
def __div__(self, other):
        """Divides an array by an array or a scalar::

        x = self / n
        """
        if isinstance(other, GPUArray):
            result = self._new_like_me(_get_common_dtype(self, other))
            return self._div(other, result)
        else:
            if other == 1:
                return self.copy()
            else:
                # create a new array for the result
                result = self._new_like_me(_get_common_dtype(self, other))
                return self._axpbz(1 / other, 0, result)
def __div__ ( self , other ) : if isinstance ( other , GPUArray ) : result = self . _new_like_me ( _get_common_dtype ( self , other ) ) return self . _div ( other , result ) else : if other == 1 : return self . copy ( ) else : # create a new array for the result result = self . _new_like_me ( _get_common_dtype ( self , other ) ) return self . _axpbz ( 1 / other , 0 , result )