|
1 | 1 | #!/usr/bin/env python
|
2 |
| -# Copyright (c) 2017-2019, Intel Corporation |
| 2 | +# Copyright (c) 2017-2023, 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:
|
@@ -88,11 +88,6 @@ def ortho_sc_1d(n, s):
|
88 | 88 | return sqrt(frwd_sc_1d(n, s))
|
89 | 89 |
|
90 | 90 |
|
91 |
| -def _unitary(norm): |
92 |
| - check_norm(norm) |
93 |
| - return norm is not None |
94 |
| - |
95 |
| - |
96 | 91 | def trycall(func, args, kwrds):
|
97 | 92 | try:
|
98 | 93 | res = func(*args, **kwrds)
|
@@ -735,13 +730,6 @@ def _cook_nd_args(a, s=None, axes=None, invreal=0):
|
735 | 730 | return s, axes
|
736 | 731 |
|
737 | 732 |
|
738 |
| -def _tot_size(x, axes): |
739 |
| - s = x.shape |
740 |
| - if axes is None: |
741 |
| - return x.size |
742 |
| - return prod([s[ai] for ai in axes]) |
743 |
| - |
744 |
| - |
745 | 733 | def fftn(a, s=None, axes=None, norm=None):
|
746 | 734 | """
|
747 | 735 | Compute the N-dimensional discrete Fourier Transform.
|
@@ -1265,7 +1253,6 @@ def rfftn(a, s=None, axes=None, norm=None):
|
1265 | 1253 |
|
1266 | 1254 | """
|
1267 | 1255 | check_norm(norm)
|
1268 |
| - unitary = _unitary(norm) |
1269 | 1256 | x = _float_utils.__downcast_float128_array(a)
|
1270 | 1257 | if (norm in (None, "backward")):
|
1271 | 1258 | output = trycall(
|
|
0 commit comments