@@ -135,7 +135,7 @@ def __abs__(self: array, /) -> array:
135
135
136
136
137
137
.. note::
138
- Element-wise results must equal the results returned by the equivalent element-wise function :func:`~signatures .elementwise_functions.abs`.
138
+ Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api .elementwise_functions.abs`.
139
139
"""
140
140
141
141
def __add__ (self : array , other : Union [int , float , array ], / ) -> array :
@@ -181,7 +181,7 @@ def __add__(self: array, other: Union[int, float, array], /) -> array:
181
181
182
182
183
183
.. note::
184
- Element-wise results must equal the results returned by the equivalent element-wise function :func:`~signatures .elementwise_functions.add`.
184
+ Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api .elementwise_functions.add`.
185
185
"""
186
186
187
187
def __and__ (self : array , other : Union [int , bool , array ], / ) -> array :
@@ -202,7 +202,7 @@ def __and__(self: array, other: Union[int, bool, array], /) -> array:
202
202
203
203
204
204
.. note::
205
- Element-wise results must equal the results returned by the equivalent element-wise function :func:`~signatures .elementwise_functions.bitwise_and`.
205
+ Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api .elementwise_functions.bitwise_and`.
206
206
"""
207
207
208
208
def __array_namespace__ (self : array , / , * , api_version : Optional [str ] = None ) -> Any :
@@ -239,7 +239,7 @@ def __bool__(self: array, /) -> bool:
239
239
240
240
def __dlpack__ (self : array , / , * , stream : Optional [Union [int , Any ]] = None ) -> PyCapsule :
241
241
"""
242
- Exports the array for consumption by :func:`~signatures .creation_functions.from_dlpack` as a DLPack capsule.
242
+ Exports the array for consumption by :func:`~array_api .creation_functions.from_dlpack` as a DLPack capsule.
243
243
244
244
Parameters
245
245
----------
@@ -294,7 +294,7 @@ def __dlpack__(self: array, /, *, stream: Optional[Union[int, Any]] = None) -> P
294
294
295
295
def __dlpack_device__ (self : array , / ) -> Tuple [Enum , int ]:
296
296
"""
297
- Returns device type and device ID in DLPack format. Meant for use within :func:`~signatures .creation_functions.from_dlpack`.
297
+ Returns device type and device ID in DLPack format. Meant for use within :func:`~array_api .creation_functions.from_dlpack`.
298
298
299
299
Parameters
300
300
----------
@@ -336,7 +336,7 @@ def __eq__(self: array, other: Union[int, float, bool, array], /) -> array:
336
336
337
337
338
338
.. note::
339
- Element-wise results must equal the results returned by the equivalent element-wise function :func:`~signatures .elementwise_functions.equal`.
339
+ Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api .elementwise_functions.equal`.
340
340
"""
341
341
342
342
def __float__ (self : array , / ) -> float :
@@ -411,7 +411,7 @@ def __floordiv__(self: array, other: Union[int, float, array], /) -> array:
411
411
412
412
413
413
.. note::
414
- Element-wise results must equal the results returned by the equivalent element-wise function :func:`~signatures .elementwise_functions.floor_divide`.
414
+ Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api .elementwise_functions.floor_divide`.
415
415
"""
416
416
417
417
def __ge__ (self : array , other : Union [int , float , array ], / ) -> array :
@@ -432,7 +432,7 @@ def __ge__(self: array, other: Union[int, float, array], /) -> array:
432
432
433
433
434
434
.. note::
435
- Element-wise results must equal the results returned by the equivalent element-wise function :func:`~signatures .elementwise_functions.greater_equal`.
435
+ Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api .elementwise_functions.greater_equal`.
436
436
"""
437
437
438
438
def __getitem__ (self : array , key : Union [int , slice , ellipsis , Tuple [Union [int , slice , ellipsis ], ...], array ], / ) -> array :
@@ -470,7 +470,7 @@ def __gt__(self: array, other: Union[int, float, array], /) -> array:
470
470
471
471
472
472
.. note::
473
- Element-wise results must equal the results returned by the equivalent element-wise function :func:`~signatures .elementwise_functions.greater`.
473
+ Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api .elementwise_functions.greater`.
474
474
"""
475
475
476
476
def __index__ (self : array , / ) -> int :
@@ -522,7 +522,7 @@ def __invert__(self: array, /) -> array:
522
522
523
523
524
524
.. note::
525
- Element-wise results must equal the results returned by the equivalent element-wise function :func:`~signatures .elementwise_functions.bitwise_invert`.
525
+ Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api .elementwise_functions.bitwise_invert`.
526
526
"""
527
527
528
528
def __le__ (self : array , other : Union [int , float , array ], / ) -> array :
@@ -543,7 +543,7 @@ def __le__(self: array, other: Union[int, float, array], /) -> array:
543
543
544
544
545
545
.. note::
546
- Element-wise results must equal the results returned by the equivalent element-wise function :func:`~signatures .elementwise_functions.less_equal`.
546
+ Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api .elementwise_functions.less_equal`.
547
547
"""
548
548
549
549
def __lshift__ (self : array , other : Union [int , array ], / ) -> array :
@@ -564,7 +564,7 @@ def __lshift__(self: array, other: Union[int, array], /) -> array:
564
564
565
565
566
566
.. note::
567
- Element-wise results must equal the results returned by the equivalent element-wise function :func:`~signatures .elementwise_functions.bitwise_left_shift`.
567
+ Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api .elementwise_functions.bitwise_left_shift`.
568
568
"""
569
569
570
570
def __lt__ (self : array , other : Union [int , float , array ], / ) -> array :
@@ -585,7 +585,7 @@ def __lt__(self: array, other: Union[int, float, array], /) -> array:
585
585
586
586
587
587
.. note::
588
- Element-wise results must equal the results returned by the equivalent element-wise function :func:`~signatures .elementwise_functions.less`.
588
+ Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api .elementwise_functions.less`.
589
589
"""
590
590
591
591
def __matmul__ (self : array , other : array , / ) -> array :
@@ -616,7 +616,7 @@ def __matmul__(self: array, other: array, /) -> array:
616
616
617
617
618
618
.. note::
619
- Results must equal the results returned by the equivalent function :func:`~signatures .linear_algebra_functions.matmul`.
619
+ Results must equal the results returned by the equivalent function :func:`~array_api .linear_algebra_functions.matmul`.
620
620
621
621
**Raises**
622
622
@@ -676,7 +676,7 @@ def __mod__(self: array, other: Union[int, float, array], /) -> array:
676
676
677
677
678
678
.. note::
679
- Element-wise results must equal the results returned by the equivalent element-wise function :func:`~signatures .elementwise_functions.remainder`.
679
+ Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api .elementwise_functions.remainder`.
680
680
"""
681
681
682
682
def __mul__ (self : array , other : Union [int , float , array ], / ) -> array :
@@ -715,7 +715,7 @@ def __mul__(self: array, other: Union[int, float, array], /) -> array:
715
715
716
716
717
717
.. note::
718
- Element-wise results must equal the results returned by the equivalent element-wise function :func:`~signatures .elementwise_functions.multiply`.
718
+ Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api .elementwise_functions.multiply`.
719
719
"""
720
720
721
721
def __ne__ (self : array , other : Union [int , float , bool , array ], / ) -> array :
@@ -736,7 +736,7 @@ def __ne__(self: array, other: Union[int, float, bool, array], /) -> array:
736
736
737
737
738
738
.. note::
739
- Element-wise results must equal the results returned by the equivalent element-wise function :func:`~signatures .elementwise_functions.not_equal`.
739
+ Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api .elementwise_functions.not_equal`.
740
740
"""
741
741
742
742
def __neg__ (self : array , / ) -> array :
@@ -758,7 +758,7 @@ def __neg__(self: array, /) -> array:
758
758
759
759
760
760
.. note::
761
- Element-wise results must equal the results returned by the equivalent element-wise function :func:`~signatures .elementwise_functions.negative`.
761
+ Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api .elementwise_functions.negative`.
762
762
"""
763
763
764
764
def __or__ (self : array , other : Union [int , bool , array ], / ) -> array :
@@ -779,7 +779,7 @@ def __or__(self: array, other: Union[int, bool, array], /) -> array:
779
779
780
780
781
781
.. note::
782
- Element-wise results must equal the results returned by the equivalent element-wise function :func:`~signatures .elementwise_functions.bitwise_or`.
782
+ Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api .elementwise_functions.bitwise_or`.
783
783
"""
784
784
785
785
def __pos__ (self : array , / ) -> array :
@@ -798,7 +798,7 @@ def __pos__(self: array, /) -> array:
798
798
799
799
800
800
.. note::
801
- Element-wise results must equal the results returned by the equivalent element-wise function :func:`~signatures .elementwise_functions.positive`.
801
+ Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api .elementwise_functions.positive`.
802
802
"""
803
803
804
804
def __pow__ (self : array , other : Union [int , float , array ], / ) -> array :
@@ -853,7 +853,7 @@ def __pow__(self: array, other: Union[int, float, array], /) -> array:
853
853
854
854
855
855
.. note::
856
- Element-wise results must equal the results returned by the equivalent element-wise function :func:`~signatures .elementwise_functions.pow`.
856
+ Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api .elementwise_functions.pow`.
857
857
"""
858
858
859
859
def __rshift__ (self : array , other : Union [int , array ], / ) -> array :
@@ -874,7 +874,7 @@ def __rshift__(self: array, other: Union[int, array], /) -> array:
874
874
875
875
876
876
.. note::
877
- Element-wise results must equal the results returned by the equivalent element-wise function :func:`~signatures .elementwise_functions.bitwise_right_shift`.
877
+ Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api .elementwise_functions.bitwise_right_shift`.
878
878
"""
879
879
880
880
def __setitem__ (self : array , key : Union [int , slice , ellipsis , Tuple [Union [int , slice , ellipsis ], ...], array ], value : Union [int , float , bool , array ], / ) -> None :
@@ -918,7 +918,7 @@ def __sub__(self: array, other: Union[int, float, array], /) -> array:
918
918
919
919
920
920
.. note::
921
- Element-wise results must equal the results returned by the equivalent element-wise function :func:`~signatures .elementwise_functions.subtract`.
921
+ Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api .elementwise_functions.subtract`.
922
922
"""
923
923
924
924
def __truediv__ (self : array , other : Union [int , float , array ], / ) -> array :
@@ -971,7 +971,7 @@ def __truediv__(self: array, other: Union[int, float, array], /) -> array:
971
971
972
972
973
973
.. note::
974
- Element-wise results must equal the results returned by the equivalent element-wise function :func:`~signatures .elementwise_functions.divide`.
974
+ Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api .elementwise_functions.divide`.
975
975
"""
976
976
977
977
def __xor__ (self : array , other : Union [int , bool , array ], / ) -> array :
@@ -992,7 +992,7 @@ def __xor__(self: array, other: Union[int, bool, array], /) -> array:
992
992
993
993
994
994
.. note::
995
- Element-wise results must equal the results returned by the equivalent element-wise function :func:`~signatures .elementwise_functions.bitwise_xor`.
995
+ Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api .elementwise_functions.bitwise_xor`.
996
996
"""
997
997
998
998
def to_device (self : array , device : Device , / , * , stream : Optional [Union [int , Any ]] = None ) -> array :
@@ -1019,3 +1019,5 @@ def to_device(self: array, device: Device, /, *, stream: Optional[Union[int, Any
1019
1019
"""
1020
1020
1021
1021
array = _array
1022
+
1023
+ __all__ = ['array' ]
0 commit comments