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

Method __le__

numpy/array_api/_array_object.py:605–614  ·  view source on GitHub ↗

Performs the operation __le__.

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

Source from the content-addressed store, hash-verified

603 return self.__class__._new(res)
604
605 def __le__(self: Array, other: Union[int, float, Array], /) -> Array:
606 """
607 Performs the operation __le__.
608 """
609 other = self._check_allowed_dtypes(other, "real numeric", "__le__")
610 if other is NotImplemented:
611 return other
612 self, other = self._normalize_two_args(self, other)
613 res = self._array.__le__(other._array)
614 return self.__class__._new(res)
615
616 def __lshift__(self: Array, other: Union[int, Array], /) -> Array:
617 """

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