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

Method __gt__

numpy/array_api/_array_object.py:566–575  ·  view source on GitHub ↗

Performs the operation __gt__.

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

Source from the content-addressed store, hash-verified

564 return self._new(res)
565
566 def __gt__(self: Array, other: Union[int, float, Array], /) -> Array:
567 """
568 Performs the operation __gt__.
569 """
570 other = self._check_allowed_dtypes(other, "real numeric", "__gt__")
571 if other is NotImplemented:
572 return other
573 self, other = self._normalize_two_args(self, other)
574 res = self._array.__gt__(other._array)
575 return self.__class__._new(res)
576
577 def __int__(self: Array, /) -> int:
578 """

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