@@ -30,47 +30,47 @@ Arithmetic Operators
30
30
31
31
A conforming implementation of the array API standard must provide and support an array object supporting the following Python arithmetic operators.
32
32
33
- - ``+x ``: :meth: `.array .__pos__ `
33
+ - ``+x ``: :meth: `.Array .__pos__ `
34
34
35
35
- `operator.pos(x) <https://docs.python.org/3/library/operator.html#operator.pos >`_
36
36
- `operator.__pos__(x) <https://docs.python.org/3/library/operator.html#operator.__pos_ _>`_
37
37
38
- - `-x `: :meth: `.array .__neg__ `
38
+ - `-x `: :meth: `.Array .__neg__ `
39
39
40
40
- `operator.neg(x) <https://docs.python.org/3/library/operator.html#operator.neg >`_
41
41
- `operator.__neg__(x) <https://docs.python.org/3/library/operator.html#operator.__neg_ _>`_
42
42
43
- - `x1 + x2 `: :meth: `.array .__add__ `
43
+ - `x1 + x2 `: :meth: `.Array .__add__ `
44
44
45
45
- `operator.add(x1, x2) <https://docs.python.org/3/library/operator.html#operator.add >`_
46
46
- `operator.__add__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__add_ _>`_
47
47
48
- - `x1 - x2 `: :meth: `.array .__sub__ `
48
+ - `x1 - x2 `: :meth: `.Array .__sub__ `
49
49
50
50
- `operator.sub(x1, x2) <https://docs.python.org/3/library/operator.html#operator.sub >`_
51
51
- `operator.__sub__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__sub_ _>`_
52
52
53
- - `x1 * x2 `: :meth: `.array .__mul__ `
53
+ - `x1 * x2 `: :meth: `.Array .__mul__ `
54
54
55
55
- `operator.mul(x1, x2) <https://docs.python.org/3/library/operator.html#operator.mul >`_
56
56
- `operator.__mul__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__mul_ _>`_
57
57
58
- - `x1 / x2 `: :meth: `.array .__truediv__ `
58
+ - `x1 / x2 `: :meth: `.Array .__truediv__ `
59
59
60
60
- `operator.truediv(x1,x2) <https://docs.python.org/3/library/operator.html#operator.truediv >`_
61
61
- `operator.__truediv__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__truediv_ _>`_
62
62
63
- - `x1 // x2 `: :meth: `.array .__floordiv__ `
63
+ - `x1 // x2 `: :meth: `.Array .__floordiv__ `
64
64
65
65
- `operator.floordiv(x1, x2) <https://docs.python.org/3/library/operator.html#operator.floordiv >`_
66
66
- `operator.__floordiv__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__floordiv_ _>`_
67
67
68
- - `x1 % x2 `: :meth: `.array .__mod__ `
68
+ - `x1 % x2 `: :meth: `.Array .__mod__ `
69
69
70
70
- `operator.mod(x1, x2) <https://docs.python.org/3/library/operator.html#operator.mod >`_
71
71
- `operator.__mod__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__mod_ _>`_
72
72
73
- - `x1 ** x2 `: :meth: `.array .__pow__ `
73
+ - `x1 ** x2 `: :meth: `.Array .__pow__ `
74
74
75
75
- `operator.pow(x1, x2) <https://docs.python.org/3/library/operator.html#operator.pow >`_
76
76
- `operator.__pow__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__pow_ _>`_
@@ -82,7 +82,7 @@ Array Operators
82
82
83
83
A conforming implementation of the array API standard must provide and support an array object supporting the following Python array operators.
84
84
85
- - `x1 @ x2 `: :meth: `.array .__matmul__ `
85
+ - `x1 @ x2 `: :meth: `.Array .__matmul__ `
86
86
87
87
- `operator.matmul(x1, x2) <https://docs.python.org/3/library/operator.html#operator.matmul >`_
88
88
- `operator.__matmul__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__matmul_ _>`_
@@ -94,34 +94,34 @@ Bitwise Operators
94
94
95
95
A conforming implementation of the array API standard must provide and support an array object supporting the following Python bitwise operators.
96
96
97
- - `~x `: :meth: `.array .__invert__ `
97
+ - `~x `: :meth: `.Array .__invert__ `
98
98
99
99
- `operator.inv(x) <https://docs.python.org/3/library/operator.html#operator.inv >`_
100
100
- `operator.invert(x) <https://docs.python.org/3/library/operator.html#operator.invert >`_
101
101
- `operator.__inv__(x) <https://docs.python.org/3/library/operator.html#operator.__inv_ _>`_
102
102
- `operator.__invert__(x) <https://docs.python.org/3/library/operator.html#operator.__invert_ _>`_
103
103
104
- - `x1 & x2 `: :meth: `.array .__and__ `
104
+ - `x1 & x2 `: :meth: `.Array .__and__ `
105
105
106
106
- `operator.and(x1, x2) <https://docs.python.org/3/library/operator.html#operator.and >`_
107
107
- `operator.__and__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__and_ _>`_
108
108
109
- - `x1 | x2 `: :meth: `.array .__or__ `
109
+ - `x1 | x2 `: :meth: `.Array .__or__ `
110
110
111
111
- `operator.or(x1, x2) <https://docs.python.org/3/library/operator.html#operator.or >`_
112
112
- `operator.__or__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__or_ _>`_
113
113
114
- - `x1 ^ x2 `: :meth: `.array .__xor__ `
114
+ - `x1 ^ x2 `: :meth: `.Array .__xor__ `
115
115
116
116
- `operator.xor(x1, x2) <https://docs.python.org/3/library/operator.html#operator.xor >`_
117
117
- `operator.__xor__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__xor_ _>`_
118
118
119
- - `x1 << x2 `: :meth: `.array .__lshift__ `
119
+ - `x1 << x2 `: :meth: `.Array .__lshift__ `
120
120
121
121
- `operator.lshift(x1, x2) <https://docs.python.org/3/library/operator.html#operator.lshift >`_
122
122
- `operator.__lshift__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__lshift_ _>`_
123
123
124
- - `x1 >> x2 `: :meth: `.array .__rshift__ `
124
+ - `x1 >> x2 `: :meth: `.Array .__rshift__ `
125
125
126
126
- `operator.rshift(x1, x2) <https://docs.python.org/3/library/operator.html#operator.rshift >`_
127
127
- `operator.__rshift__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__rshift_ _>`_
@@ -133,37 +133,37 @@ Comparison Operators
133
133
134
134
A conforming implementation of the array API standard must provide and support an array object supporting the following Python comparison operators.
135
135
136
- - `x1 < x2 `: :meth: `.array .__lt__ `
136
+ - `x1 < x2 `: :meth: `.Array .__lt__ `
137
137
138
138
- `operator.lt(x1, x2) <https://docs.python.org/3/library/operator.html#operator.lt >`_
139
139
- `operator.__lt__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__lt_ _>`_
140
140
141
- - `x1 <= x2 `: :meth: `.array .__le__ `
141
+ - `x1 <= x2 `: :meth: `.Array .__le__ `
142
142
143
143
- `operator.le(x1, x2) <https://docs.python.org/3/library/operator.html#operator.le >`_
144
144
- `operator.__le__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__le_ _>`_
145
145
146
- - `x1 > x2 `: :meth: `.array .__gt__ `
146
+ - `x1 > x2 `: :meth: `.Array .__gt__ `
147
147
148
148
- `operator.gt(x1, x2) <https://docs.python.org/3/library/operator.html#operator.gt >`_
149
149
- `operator.__gt__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__gt_ _>`_
150
150
151
- - `x1 >= x2 `: :meth: `.array .__ge__ `
151
+ - `x1 >= x2 `: :meth: `.Array .__ge__ `
152
152
153
153
- `operator.ge(x1, x2) <https://docs.python.org/3/library/operator.html#operator.ge >`_
154
154
- `operator.__ge__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__ge_ _>`_
155
155
156
- - `x1 == x2 `: :meth: `.array .__eq__ `
156
+ - `x1 == x2 `: :meth: `.Array .__eq__ `
157
157
158
158
- `operator.eq(x1, x2) <https://docs.python.org/3/library/operator.html#operator.eq >`_
159
159
- `operator.__eq__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__eq_ _>`_
160
160
161
- - `x1 != x2 `: :meth: `.array .__ne__ `
161
+ - `x1 != x2 `: :meth: `.Array .__ne__ `
162
162
163
163
- `operator.ne(x1, x2) <https://docs.python.org/3/library/operator.html#operator.ne >`_
164
164
- `operator.__ne__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__ne_ _>`_
165
165
166
- :meth: `.array .__lt__ `, :meth: `.array .__le__ `, :meth: `.array .__gt__ `, :meth: `.array .__ge__ ` are only defined for arrays having real-valued data types. Other comparison operators should be defined for arrays having any data type.
166
+ :meth: `.Array .__lt__ `, :meth: `.Array .__le__ `, :meth: `.Array .__gt__ `, :meth: `.Array .__ge__ ` are only defined for arrays having real-valued data types. Other comparison operators should be defined for arrays having any data type.
167
167
For backward compatibility, conforming implementations may support complex numbers; however, inequality comparison of complex numbers is unspecified and thus implementation-dependent (see :ref: `complex-number-ordering `).
168
168
169
169
In-place Operators
@@ -272,37 +272,37 @@ Methods
272
272
:toctree: generated
273
273
:template: property.rst
274
274
275
- array .__abs__
276
- array .__add__
277
- array .__and__
278
- array.__array_namespace__
279
- array .__bool__
280
- array .__complex__
281
- array .__dlpack__
282
- array .__dlpack_device__
283
- array .__eq__
284
- array .__float__
285
- array .__floordiv__
286
- array .__ge__
287
- array .__getitem__
288
- array .__gt__
289
- array .__index__
290
- array .__int__
291
- array .__invert__
292
- array .__le__
293
- array .__lshift__
294
- array .__lt__
295
- array .__matmul__
296
- array .__mod__
297
- array .__mul__
298
- array .__ne__
299
- array .__neg__
300
- array .__or__
301
- array .__pos__
302
- array .__pow__
303
- array .__rshift__
304
- array .__setitem__
305
- array .__sub__
306
- array .__truediv__
307
- array .__xor__
308
- array .to_device
275
+ Array .__abs__
276
+ Array .__add__
277
+ Array .__and__
278
+ Array.__Array_namespace__
279
+ Array .__bool__
280
+ Array .__complex__
281
+ Array .__dlpack__
282
+ Array .__dlpack_device__
283
+ Array .__eq__
284
+ Array .__float__
285
+ Array .__floordiv__
286
+ Array .__ge__
287
+ Array .__getitem__
288
+ Array .__gt__
289
+ Array .__index__
290
+ Array .__int__
291
+ Array .__invert__
292
+ Array .__le__
293
+ Array .__lshift__
294
+ Array .__lt__
295
+ Array .__matmul__
296
+ Array .__mod__
297
+ Array .__mul__
298
+ Array .__ne__
299
+ Array .__neg__
300
+ Array .__or__
301
+ Array .__pos__
302
+ Array .__pow__
303
+ Array .__rshift__
304
+ Array .__setitem__
305
+ Array .__sub__
306
+ Array .__truediv__
307
+ Array .__xor__
308
+ Array .to_device
0 commit comments