You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Replace info with __array_namespace_info__ in the stubs
'info' is not an actual top-level name in the namespace.
* Use consistent wording for complex dtypes in the fft stubs
* Fix some copysign special-cases for better machine readability and consistency
Copy file name to clipboardexpand all lines: src/array_api_stubs/_2022_12/fft.py
+7-7
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ def fft(
35
35
Parameters
36
36
----------
37
37
x: array
38
-
input array. Should have a complex-valued floating-point data type.
38
+
input array. Should have a complex floating-point data type.
39
39
n: Optional[int]
40
40
number of elements over which to compute the transform along the axis (dimension) specified by ``axis``. Let ``M`` be the size of the input array along the axis specified by ``axis``. When ``n`` is ``None``, the function must set ``n`` equal to ``M``.
41
41
@@ -84,7 +84,7 @@ def ifft(
84
84
Parameters
85
85
----------
86
86
x: array
87
-
input array. Should have a complex-valued floating-point data type.
87
+
input array. Should have a complex floating-point data type.
88
88
n: Optional[int]
89
89
number of elements over which to compute the transform along the axis (dimension) specified by ``axis``. Let ``M`` be the size of the input array along the axis specified by ``axis``. When ``n`` is ``None``, the function must set ``n`` equal to ``M``.
90
90
@@ -133,7 +133,7 @@ def fftn(
133
133
Parameters
134
134
----------
135
135
x: array
136
-
input array. Should have a complex-valued floating-point data type.
136
+
input array. Should have a complex floating-point data type.
137
137
s: Optional[Sequence[int]]
138
138
number of elements over which to compute the transform along the axes (dimensions) specified by ``axes``. Let ``i`` be the index of the ``n``-th axis specified by ``axes`` (i.e., ``i = axes[n]``) and ``M[i]`` be the size of the input array along axis ``i``. When ``s`` is ``None``, the function must set ``s`` equal to a sequence of integers such that ``s[i]`` equals ``M[i]`` for all ``i``.
139
139
@@ -188,7 +188,7 @@ def ifftn(
188
188
Parameters
189
189
----------
190
190
x: array
191
-
input array. Should have a complex-valued floating-point data type.
191
+
input array. Should have a complex floating-point data type.
192
192
s: Optional[Sequence[int]]
193
193
number of elements over which to compute the transform along the axes (dimensions) specified by ``axes``. Let ``i`` be the index of the ``n``-th axis specified by ``axes`` (i.e., ``i = axes[n]``) and ``M[i]`` be the size of the input array along axis ``i``. When ``s`` is ``None``, the function must set ``s`` equal to a sequence of integers such that ``s[i]`` equals ``M[i]`` for all ``i``.
194
194
@@ -292,7 +292,7 @@ def irfft(
292
292
Parameters
293
293
----------
294
294
x: array
295
-
input array. Should have a complex-valued floating-point data type.
295
+
input array. Should have a complex floating-point data type.
296
296
n: Optional[int]
297
297
number of elements along the transformed axis (dimension) specified by ``axis`` in the **output array**. Let ``M`` be the size of the input array along the axis specified by ``axis``. When ``n`` is ``None``, the function must set ``n`` equal to ``2*(M-1)``.
298
298
@@ -398,7 +398,7 @@ def irfftn(
398
398
Parameters
399
399
----------
400
400
x: array
401
-
input array. Should have a complex-valued floating-point data type.
401
+
input array. Should have a complex floating-point data type.
402
402
s: Optional[Sequence[int]]
403
403
number of elements along the transformed axes (dimensions) specified by ``axes`` in the **output array**. Let ``i`` be the index of the ``n``-th axis specified by ``axes`` (i.e., ``i = axes[n]``) and ``M[i]`` be the size of the input array along axis ``i``. When ``s`` is ``None``, the function must set ``s`` equal to a sequence of integers such that ``s[i]`` equals ``M[i]`` for all ``i``, except for the last transformed axis in which ``s[i]`` equals ``2*(M[i]-1)``. For each ``i``, let ``n`` equal ``s[i]``, except for the last transformed axis in which ``n`` equals ``s[i]//2+1``.
404
404
@@ -452,7 +452,7 @@ def hfft(
452
452
Parameters
453
453
----------
454
454
x: array
455
-
input array. Should have a complex-valued floating-point data type.
455
+
input array. Should have a complex floating-point data type.
456
456
n: Optional[int]
457
457
number of elements along the transformed axis (dimension) specified by ``axis`` in the **output array**. Let ``M`` be the size of the input array along the axis specified by ``axis``. When ``n`` is ``None``, the function must set ``n`` equal to ``2*(M-1)``.
Copy file name to clipboardexpand all lines: src/array_api_stubs/_2023_12/fft.py
+12-12
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ def fft(
35
35
Parameters
36
36
----------
37
37
x: array
38
-
input array. Should have a complex-valued floating-point data type.
38
+
input array. Should have a complex floating-point data type.
39
39
n: Optional[int]
40
40
number of elements over which to compute the transform along the axis (dimension) specified by ``axis``. Let ``M`` be the size of the input array along the axis specified by ``axis``. When ``n`` is ``None``, the function must set ``n`` equal to ``M``.
41
41
@@ -66,7 +66,7 @@ def fft(
66
66
.. versionadded:: 2022.12
67
67
68
68
.. versionchanged:: 2023.12
69
-
Required the input array have a complex-valued floating-point data type and required that the output array have the same data type as the input array.
69
+
Required the input array have a complex floating-point data type and required that the output array have the same data type as the input array.
70
70
"""
71
71
72
72
@@ -87,7 +87,7 @@ def ifft(
87
87
Parameters
88
88
----------
89
89
x: array
90
-
input array. Should have a complex-valued floating-point data type.
90
+
input array. Should have a complex floating-point data type.
91
91
n: Optional[int]
92
92
number of elements over which to compute the transform along the axis (dimension) specified by ``axis``. Let ``M`` be the size of the input array along the axis specified by ``axis``. When ``n`` is ``None``, the function must set ``n`` equal to ``M``.
93
93
@@ -118,7 +118,7 @@ def ifft(
118
118
.. versionadded:: 2022.12
119
119
120
120
.. versionchanged:: 2023.12
121
-
Required the input array have a complex-valued floating-point data type and required that the output array have the same data type as the input array.
121
+
Required the input array have a complex floating-point data type and required that the output array have the same data type as the input array.
122
122
"""
123
123
124
124
@@ -139,7 +139,7 @@ def fftn(
139
139
Parameters
140
140
----------
141
141
x: array
142
-
input array. Should have a complex-valued floating-point data type.
142
+
input array. Should have a complex floating-point data type.
143
143
s: Optional[Sequence[int]]
144
144
number of elements over which to compute the transform along the axes (dimensions) specified by ``axes``. Let ``i`` be the index of the ``n``-th axis specified by ``axes`` (i.e., ``i = axes[n]``) and ``M[i]`` be the size of the input array along axis ``i``. When ``s`` is ``None``, the function must set ``s`` equal to a sequence of integers such that ``s[i]`` equals ``M[i]`` for all ``i``.
145
145
@@ -176,7 +176,7 @@ def fftn(
176
176
.. versionadded:: 2022.12
177
177
178
178
.. versionchanged:: 2023.12
179
-
Required the input array have a complex-valued floating-point data type and required that the output array have the same data type as the input array.
179
+
Required the input array have a complex floating-point data type and required that the output array have the same data type as the input array.
180
180
"""
181
181
182
182
@@ -197,7 +197,7 @@ def ifftn(
197
197
Parameters
198
198
----------
199
199
x: array
200
-
input array. Should have a complex-valued floating-point data type.
200
+
input array. Should have a complex floating-point data type.
201
201
s: Optional[Sequence[int]]
202
202
number of elements over which to compute the transform along the axes (dimensions) specified by ``axes``. Let ``i`` be the index of the ``n``-th axis specified by ``axes`` (i.e., ``i = axes[n]``) and ``M[i]`` be the size of the input array along axis ``i``. When ``s`` is ``None``, the function must set ``s`` equal to a sequence of integers such that ``s[i]`` equals ``M[i]`` for all ``i``.
203
203
@@ -234,7 +234,7 @@ def ifftn(
234
234
.. versionadded:: 2022.12
235
235
236
236
.. versionchanged:: 2023.12
237
-
Required the input array have a complex-valued floating-point data type and required that the output array have the same data type as the input array.
237
+
Required the input array have a complex floating-point data type and required that the output array have the same data type as the input array.
238
238
"""
239
239
240
240
@@ -304,7 +304,7 @@ def irfft(
304
304
Parameters
305
305
----------
306
306
x: array
307
-
input array. Should have a complex-valued floating-point data type.
307
+
input array. Should have a complex floating-point data type.
308
308
n: Optional[int]
309
309
number of elements along the transformed axis (dimension) specified by ``axis`` in the **output array**. Let ``M`` be the size of the input array along the axis specified by ``axis``. When ``n`` is ``None``, the function must set ``n`` equal to ``2*(M-1)``.
310
310
@@ -413,7 +413,7 @@ def irfftn(
413
413
Parameters
414
414
----------
415
415
x: array
416
-
input array. Should have a complex-valued floating-point data type.
416
+
input array. Should have a complex floating-point data type.
417
417
s: Optional[Sequence[int]]
418
418
number of elements along the transformed axes (dimensions) specified by ``axes`` in the **output array**. Let ``i`` be the index of the ``n``-th axis specified by ``axes`` (i.e., ``i = axes[n]``) and ``M[i]`` be the size of the input array along axis ``i``. When ``s`` is ``None``, the function must set ``s`` equal to a sequence of integers such that ``s[i]`` equals ``M[i]`` for all ``i``, except for the last transformed axis in which ``s[i]`` equals ``2*(M[i]-1)``. For each ``i``, let ``n`` equal ``s[i]``, except for the last transformed axis in which ``n`` equals ``s[i]//2+1``.
419
419
@@ -470,7 +470,7 @@ def hfft(
470
470
Parameters
471
471
----------
472
472
x: array
473
-
input array. Should have a complex-valued floating-point data type.
473
+
input array. Should have a complex floating-point data type.
474
474
n: Optional[int]
475
475
number of elements along the transformed axis (dimension) specified by ``axis`` in the **output array**. Let ``M`` be the size of the input array along the axis specified by ``axis``. When ``n`` is ``None``, the function must set ``n`` equal to ``2*(M-1)``.
476
476
@@ -501,7 +501,7 @@ def hfft(
501
501
.. versionadded:: 2022.12
502
502
503
503
.. versionchanged:: 2023.12
504
-
Required the input array to have a complex-valued floating-point data type and required that the output array have a real-valued data type having the same precision as the input array.
504
+
Required the input array to have a complex floating-point data type and required that the output array have a real-valued data type having the same precision as the input array.
0 commit comments