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

Method __ipow__

numpy/array_api/_array_object.py:961–969  ·  view source on GitHub ↗

Performs the operation __ipow__.

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

Source from the content-addressed store, hash-verified

959 return self.__class__._new(res)
960
961 def __ipow__(self: Array, other: Union[int, float, Array], /) -> Array:
962 """
963 Performs the operation __ipow__.
964 """
965 other = self._check_allowed_dtypes(other, "numeric", "__ipow__")
966 if other is NotImplemented:
967 return other
968 self._array.__ipow__(other._array)
969 return self
970
971 def __rpow__(self: Array, other: Union[int, float, Array], /) -> Array:
972 """

Callers

nothing calls this directly

Calls 1

_check_allowed_dtypesMethod · 0.95

Tested by

no test coverage detected