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

Method __rxor__

numpy/array_api/_array_object.py:1057–1066  ·  view source on GitHub ↗

Performs the operation __rxor__.

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

Source from the content-addressed store, hash-verified

1055 return self
1056
1057 def __rxor__(self: Array, other: Union[int, bool, Array], /) -> Array:
1058 """
1059 Performs the operation __rxor__.
1060 """
1061 other = self._check_allowed_dtypes(other, "integer or boolean", "__rxor__")
1062 if other is NotImplemented:
1063 return other
1064 self, other = self._normalize_two_args(self, other)
1065 res = self._array.__rxor__(other._array)
1066 return self.__class__._new(res)
1067
1068 def to_device(self: Array, device: Device, /, stream: None = None) -> Array:
1069 if stream is not None:

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