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
an array containing the element-wise results. The returned array must have a floating-point data type with the same floating-point precision as ``x`` (e.g., if ``x`` is ``complex64``, the returned array must have the floating-point data type ``float32``).
an array containing the element-wise results. The returned array must have a floating-point data type with the same floating-point precision as ``x`` (e.g., if ``x`` is ``complex64``, the returned array must have the floating-point data type ``float32``).
Copy file name to clipboardExpand all lines: src/array_api_stubs/_draft/fft.py
+28Lines changed: 28 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,8 @@ def fft(
44
44
-------
45
45
out: array
46
46
an array transformed along the axis (dimension) indicated by ``axis``. The returned array must have a complex floating-point data type determined by :ref:`type-promotion`.
47
+
48
+
.. versionadded:: 2022.12
47
49
"""
48
50
49
51
@@ -90,6 +92,8 @@ def ifft(
90
92
-------
91
93
out: array
92
94
an array transformed along the axis (dimension) indicated by ``axis``. The returned array must have a complex floating-point data type determined by :ref:`type-promotion`.
95
+
96
+
.. versionadded:: 2022.12
93
97
"""
94
98
95
99
@@ -143,6 +147,8 @@ def fftn(
143
147
-------
144
148
out: array
145
149
an array transformed along the axes (dimension) indicated by ``axes``. The returned array must have a complex floating-point data type determined by :ref:`type-promotion`.
150
+
151
+
.. versionadded:: 2022.12
146
152
"""
147
153
148
154
@@ -196,6 +202,8 @@ def ifftn(
196
202
-------
197
203
out: array
198
204
an array transformed along the axes (dimension) indicated by ``axes``. The returned array must have a complex floating-point data type determined by :ref:`type-promotion`.
205
+
206
+
.. versionadded:: 2022.12
199
207
"""
200
208
201
209
@@ -242,6 +250,8 @@ def rfft(
242
250
-------
243
251
out: array
244
252
an array transformed along the axis (dimension) indicated by ``axis``. The returned array must have a complex-valued floating-point data type determined by :ref:`type-promotion`.
253
+
254
+
.. versionadded:: 2022.12
245
255
"""
246
256
247
257
@@ -288,6 +298,8 @@ def irfft(
288
298
-------
289
299
out: array
290
300
an array transformed along the axis (dimension) indicated by ``axis``. The returned array must have a real-valued floating-point data type determined by :ref:`type-promotion`. The length along the transformed axis is ``n`` (if given) or ``2*(m-1)`` (otherwise).
301
+
302
+
.. versionadded:: 2022.12
291
303
"""
292
304
293
305
@@ -341,6 +353,8 @@ def rfftn(
341
353
-------
342
354
out: array
343
355
an array transformed along the axes (dimension) indicated by ``axes``. The returned array must have a complex-valued floating-point data type determined by :ref:`type-promotion`.
356
+
357
+
.. versionadded:: 2022.12
344
358
"""
345
359
346
360
@@ -394,6 +408,8 @@ def irfftn(
394
408
-------
395
409
out: array
396
410
an array transformed along the axes (dimension) indicated by ``axes``. The returned array must have a real-valued floating-point data type determined by :ref:`type-promotion`. The length along the last transformed axis is ``s[-1]`` (if given) or ``2*(m - 1)`` (otherwise), and all other axes ``s[i]``.
411
+
412
+
.. versionadded:: 2022.12
397
413
"""
398
414
399
415
@@ -437,6 +453,8 @@ def hfft(
437
453
-------
438
454
out: array
439
455
an array transformed along the axis (dimension) indicated by ``axis``. The returned array must have a real-valued floating-point data type determined by :ref:`type-promotion`.
456
+
457
+
.. versionadded:: 2022.12
440
458
"""
441
459
442
460
@@ -480,6 +498,8 @@ def ihfft(
480
498
-------
481
499
out: array
482
500
an array transformed along the axis (dimension) indicated by ``axis``. The returned array must have a complex-valued floating-point data type determined by :ref:`type-promotion`.
an array of length ``n`` containing the sample frequencies. The returned array must have a real-valued floating-point data type determined by :ref:`type-promotion`.
an array of length ``n//2+1`` containing the sample frequencies. The returned array must have a real-valued floating-point data type determined by :ref:`type-promotion`.
an array having the same data type as ``x``. The output array must have the same rank (i.e., number of dimensions) as ``x`` and must have the same shape as ``x``, except for the axis specified by ``axis`` whose size must equal the number of elements in ``indices``.
0 commit comments