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
Copy file name to clipboardExpand all lines: src/array_api_stubs/_draft/fft.py
+13-1
Original file line number
Diff line number
Diff line change
@@ -146,6 +146,8 @@ def fftn(
146
146
axes (dimensions) over which to compute the transform. A valid axis in ``axes`` must be an integer on the interval ``[-N, N)``, where ``N`` is the rank (number of dimensions) of ``x`` along that axis. If an axis is specified as a negative integer, the function must determine the axis along which to compute the transform by counting backward from the last dimension (where ``-1`` refers to the last dimension).
147
147
148
148
If ``s`` is provided, the corresponding ``axes`` to be transformed must also be provided. If ``axes`` is ``None``, the function must compute the transform over all axes. Default: ``None``.
149
+
150
+
If ``axes`` contains any repeated entries, the behavior is unspecified and thus implementation-defined.
149
151
norm: Literal['backward', 'ortho', 'forward']
150
152
normalization mode. Should be one of the following modes:
151
153
@@ -199,6 +201,8 @@ def ifftn(
199
201
axes (dimensions) over which to compute the transform. A valid axis in ``axes`` must be an integer on the interval ``[-N, N)``, where ``N`` is the rank (number of dimensions) of ``x`` along that axis. If an axis is specified as a negative integer, the function must determine the axis along which to compute the transform by counting backward from the last dimension (where ``-1`` refers to the last dimension).
200
202
201
203
If ``s`` is provided, the corresponding ``axes`` to be transformed must also be provided. If ``axes`` is ``None``, the function must compute the transform over all axes. Default: ``None``.
204
+
205
+
If ``axes`` contains any repeated entries, the behavior is unspecified and thus implementation-defined.
202
206
norm: Literal['backward', 'ortho', 'forward']
203
207
specify the normalization mode. Should be one of the following modes:
204
208
@@ -352,6 +356,8 @@ def rfftn(
352
356
axes (dimensions) over which to compute the transform. A valid axis in ``axes`` must be an integer on the interval ``[-N, N)``, where ``N`` is the rank (number of dimensions) of ``x`` along that axis. If an axis is specified as a negative integer, the function must determine the axis along which to compute the transform by counting backward from the last dimension (where ``-1`` refers to the last dimension).
353
357
354
358
If ``s`` is provided, the corresponding ``axes`` to be transformed must also be provided. If ``axes`` is ``None``, the function must compute the transform over all axes. Default: ``None``.
359
+
360
+
If ``axes`` contains any repeated entries, the behavior is unspecified and thus implementation-defined.
355
361
norm: Literal['backward', 'ortho', 'forward']
356
362
normalization mode. Should be one of the following modes:
357
363
@@ -404,7 +410,9 @@ def irfftn(
404
410
axes: Optional[Sequence[int]]
405
411
axes (dimensions) over which to compute the transform. A valid axis in ``axes`` must be an integer on the interval ``[-N, N)``, where ``N`` is the rank (number of dimensions) of ``x`` along that axis. If an axis is specified as a negative integer, the function must determine the axis along which to compute the transform by counting backward from the last dimension (where ``-1`` refers to the last dimension).
406
412
407
-
If ``s`` is provided, the corresponding ``axes`` to be transformed must also be provided. If ``axes`` is ``None``, the function must compute the transform over all axes. Default: ``None``.
413
+
If ``s`` is provided, the corresponding ``axes`` to be transformed must also be provided. If ``axes`` is ``None``, the function must compute the transform over all axes. Default: ``None``.
414
+
415
+
If ``axes`` contains any repeated entries, the behavior is unspecified and thus implementation-defined.
408
416
norm: Literal['backward', 'ortho', 'forward']
409
417
normalization mode. Should be one of the following modes:
0 commit comments