MCPcopy Create free account
hub / github.com/numpy/numpy / __ne__

Method __ne__

numpy/array_api/_array_object.py:672–681  ·  view source on GitHub ↗

Performs the operation __ne__.

(self: Array, other: Union[int, float, bool, Array], /)

Source from the content-addressed store, hash-verified

670 return self.__class__._new(res)
671
672 def __ne__(self: Array, other: Union[int, float, bool, Array], /) -> Array:
673 """
674 Performs the operation __ne__.
675 """
676 other = self._check_allowed_dtypes(other, "all", "__ne__")
677 if other is NotImplemented:
678 return other
679 self, other = self._normalize_two_args(self, other)
680 res = self._array.__ne__(other._array)
681 return self.__class__._new(res)
682
683 def __neg__(self: Array, /) -> Array:
684 """

Callers

nothing calls this directly

Calls 3

_check_allowed_dtypesMethod · 0.95
_normalize_two_argsMethod · 0.95
_newMethod · 0.80

Tested by

no test coverage detected