Performs the operation __eq__.
(self: Array, other: Union[int, float, bool, Array], /)
| 494 | return self._array.__dlpack_device__() |
| 495 | |
| 496 | def __eq__(self: Array, other: Union[int, float, bool, Array], /) -> Array: |
| 497 | """ |
| 498 | Performs the operation __eq__. |
| 499 | """ |
| 500 | # Even though "all" dtypes are allowed, we still require them to be |
| 501 | # promotable with each other. |
| 502 | other = self._check_allowed_dtypes(other, "all", "__eq__") |
| 503 | if other is NotImplemented: |
| 504 | return other |
| 505 | self, other = self._normalize_two_args(self, other) |
| 506 | res = self._array.__eq__(other._array) |
| 507 | return self.__class__._new(res) |
| 508 | |
| 509 | def __float__(self: Array, /) -> float: |
| 510 | """ |
nothing calls this directly
no test coverage detected