Skip to content

Commit 60db5b8

Browse files
committed
fix input/output data types
1 parent ac64f2e commit 60db5b8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

spec/API_specification/array_api/fourier_transform_functions.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def irfft(x: array, /, *, n: Optional[int] = None, axis: int = -1, norm: Literal
191191
Parameters
192192
----------
193193
x: array
194-
input array. Should have a real-valued floating-point data type.
194+
input array. Should have a complex floating-point data type.
195195
n: int
196196
length of the transformed axis of the **output**. If
197197
@@ -261,7 +261,7 @@ def irfftn(x: array, /, *, s: Union[Sequence[int], Tuple[int, ...]] = None, axes
261261
Parameters
262262
----------
263263
x: array
264-
input array. Should have a real-valued floating-point data type.
264+
input array. Should have a complex floating-point data type.
265265
s: Union[Sequence[int], Tuple[int, ...]]
266266
size of each transformed axis of the **output**. If
267267
@@ -283,7 +283,7 @@ def irfftn(x: array, /, *, s: Union[Sequence[int], Tuple[int, ...]] = None, axes
283283
Returns
284284
-------
285285
out: array
286-
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`. The length along the last transformed axis is ``s[-1]`` (if given) or ``2 * (m - 1)``, and all other axes ``s[i]``.
286+
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)``, and all other axes ``s[i]``.
287287
"""
288288

289289

@@ -294,7 +294,7 @@ def hfft(x: array, /, *, n: Optional[int] = None, axis: int = -1, norm: Literal[
294294
Parameters
295295
----------
296296
x: array
297-
input array. Should have a complex floating-point data type.
297+
input array. Should have a real-valued floating-point data type.
298298
n: int
299299
length of the transformed axis of the output. If
300300
@@ -327,7 +327,7 @@ def ihfft(x: array, /, *, n: Optional[int] = None, axis: int = -1, norm: Literal
327327
Parameters
328328
----------
329329
x: array
330-
input array. Should have a floating-point data type.
330+
input array. Should have a real-valued floating-point data type.
331331
n: int
332332
length of the transformed axis of the output. If
333333
@@ -349,7 +349,7 @@ def ihfft(x: array, /, *, n: Optional[int] = None, axis: int = -1, norm: Literal
349349
Returns
350350
-------
351351
out: array
352-
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`.
352+
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`.
353353
"""
354354

355355

0 commit comments

Comments
 (0)