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

Method __lt__

numpy/array_api/_array_object.py:627–636  ·  view source on GitHub ↗

Performs the operation __lt__.

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

Source from the content-addressed store, hash-verified

625 return self.__class__._new(res)
626
627 def __lt__(self: Array, other: Union[int, float, Array], /) -> Array:
628 """
629 Performs the operation __lt__.
630 """
631 other = self._check_allowed_dtypes(other, "real numeric", "__lt__")
632 if other is NotImplemented:
633 return other
634 self, other = self._normalize_two_args(self, other)
635 res = self._array.__lt__(other._array)
636 return self.__class__._new(res)
637
638 def __matmul__(self: Array, other: Array, /) -> Array:
639 """

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