@@ -513,6 +513,9 @@ def __eq__(self: array, other: Union[int, float, bool, array], /) -> array:
513
513
514
514
.. note::
515
515
Element-wise results, including special cases, must equal the results returned by the equivalent element-wise function :func:`~array_api.equal`.
516
+
517
+ .. note::
518
+ Comparison of arrays without a corresponding promotable data type (see :ref:`type-promotion`) is undefined and thus implementation-dependent.
516
519
"""
517
520
518
521
def __float__ (self : array , / ) -> float :
@@ -599,6 +602,9 @@ def __ge__(self: array, other: Union[int, float, array], /) -> array:
599
602
600
603
.. note::
601
604
Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api.greater_equal`.
605
+
606
+ .. note::
607
+ Comparison of arrays without a corresponding promotable data type (see :ref:`type-promotion`) is undefined and thus implementation-dependent.
602
608
"""
603
609
604
610
def __getitem__ (
@@ -657,6 +663,9 @@ def __gt__(self: array, other: Union[int, float, array], /) -> array:
657
663
658
664
.. note::
659
665
Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api.greater`.
666
+
667
+ .. note::
668
+ Comparison of arrays without a corresponding promotable data type (see :ref:`type-promotion`) is undefined and thus implementation-dependent.
660
669
"""
661
670
662
671
def __index__ (self : array , / ) -> int :
@@ -778,6 +787,9 @@ def __le__(self: array, other: Union[int, float, array], /) -> array:
778
787
779
788
.. note::
780
789
Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api.less_equal`.
790
+
791
+ .. note::
792
+ Comparison of arrays without a corresponding promotable data type (see :ref:`type-promotion`) is undefined and thus implementation-dependent.
781
793
"""
782
794
783
795
def __lshift__ (self : array , other : Union [int , array ], / ) -> array :
@@ -823,6 +835,9 @@ def __lt__(self: array, other: Union[int, float, array], /) -> array:
823
835
824
836
.. note::
825
837
Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api.less`.
838
+
839
+ .. note::
840
+ Comparison of arrays without a corresponding promotable data type (see :ref:`type-promotion`) is undefined and thus implementation-dependent.
826
841
"""
827
842
828
843
def __matmul__ (self : array , other : array , / ) -> array :
@@ -949,6 +964,9 @@ def __ne__(self: array, other: Union[int, float, bool, array], /) -> array:
949
964
.. note::
950
965
Element-wise results, including special cases, must equal the results returned by the equivalent element-wise function :func:`~array_api.not_equal`.
951
966
967
+ .. note::
968
+ Comparison of arrays without a corresponding promotable data type (see :ref:`type-promotion`) is undefined and thus implementation-dependent.
969
+
952
970
.. versionchanged:: 2022.12
953
971
Added complex data type support.
954
972
"""
0 commit comments