@@ -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
+ Comparisons 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
+ Comparisons 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__ (
@@ -651,6 +657,9 @@ def __gt__(self: array, other: Union[int, float, array], /) -> array:
651
657
652
658
.. note::
653
659
Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api.greater`.
660
+
661
+ .. note::
662
+ Comparisons of arrays without a corresponding promotable data type (see :ref:`type-promotion`) is undefined and thus implementation-dependent.
654
663
"""
655
664
656
665
def __index__ (self : array , / ) -> int :
@@ -748,6 +757,9 @@ def __invert__(self: array, /) -> array:
748
757
749
758
.. note::
750
759
Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api.bitwise_invert`.
760
+
761
+ .. note::
762
+ Comparisons of arrays without a corresponding promotable data type (see :ref:`type-promotion`) is undefined and thus implementation-dependent.
751
763
"""
752
764
753
765
def __le__ (self : array , other : Union [int , float , array ], / ) -> array :
@@ -772,6 +784,9 @@ def __le__(self: array, other: Union[int, float, array], /) -> array:
772
784
773
785
.. note::
774
786
Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api.less_equal`.
787
+
788
+ .. note::
789
+ Comparisons of arrays without a corresponding promotable data type (see :ref:`type-promotion`) is undefined and thus implementation-dependent.
775
790
"""
776
791
777
792
def __lshift__ (self : array , other : Union [int , array ], / ) -> array :
@@ -943,6 +958,9 @@ def __ne__(self: array, other: Union[int, float, bool, array], /) -> array:
943
958
.. note::
944
959
Element-wise results, including special cases, must equal the results returned by the equivalent element-wise function :func:`~array_api.not_equal`.
945
960
961
+ .. note::
962
+ Comparisons of arrays without a corresponding promotable data type (see :ref:`type-promotion`) is undefined and thus implementation-dependent.
963
+
946
964
.. versionchanged:: 2022.12
947
965
Added complex data type support.
948
966
"""
0 commit comments