|
1 | 1 | #!/usr/bin/env python
|
2 |
| -# Copyright (c) 2017-2024, Intel Corporation |
| 2 | +# Copyright (c) 2017-2025, Intel Corporation |
3 | 3 | #
|
4 | 4 | # Redistribution and use in source and binary forms, with or without
|
5 | 5 | # modification, are permitted provided that the following conditions are met:
|
@@ -207,7 +207,7 @@ def fft(a, n=None, axis=-1, norm=None):
|
207 | 207 | else:
|
208 | 208 | output = trycall(
|
209 | 209 | mkl_fft.fft,
|
210 |
| - (x, ), |
| 210 | + (x,), |
211 | 211 | {'n': n, 'axis': axis,
|
212 | 212 | 'forward_scale': ortho_sc_1d(n, x.shape[axis])})
|
213 | 213 | return output
|
@@ -306,7 +306,7 @@ def ifft(a, n=None, axis=-1, norm=None):
|
306 | 306 | mkl_fft.ifft, (x,), {'n': n, 'axis':axis})
|
307 | 307 | elif norm == "forward":
|
308 | 308 | output = trycall(
|
309 |
| - mkl_fft.ifft, (x, ), |
| 309 | + mkl_fft.ifft, (x,), |
310 | 310 | {'n': n, 'axis': axis,
|
311 | 311 | 'forward_scale': frwd_sc_1d(n, x.shape[axis])})
|
312 | 312 | else:
|
@@ -614,17 +614,17 @@ def hfft(a, n=None, axis=-1, norm=None):
|
614 | 614 | if (norm in (None, "backward")):
|
615 | 615 | res = trycall(
|
616 | 616 | irfft,
|
617 |
| - (x, ), |
| 617 | + (x,), |
618 | 618 | {'n': n, 'axis': axis, 'norm': 'forward'})
|
619 | 619 | elif norm == "forward":
|
620 | 620 | res = trycall(
|
621 | 621 | irfft,
|
622 |
| - (x, ), |
| 622 | + (x,), |
623 | 623 | {'n': n, 'axis': axis, 'norm': 'backward'})
|
624 | 624 | else:
|
625 | 625 | res = trycall(
|
626 | 626 | irfft,
|
627 |
| - (x, ), |
| 627 | + (x,), |
628 | 628 | {'n': n, 'axis': axis, 'norm': 'ortho'})
|
629 | 629 | return res
|
630 | 630 |
|
|
0 commit comments