@@ -75,7 +75,7 @@ def frwd_sc_1d(n, s):
7575 return 1 / nn if nn != 0 else 1
7676
7777
78- def frwd_sc_nd (s , axes , x_shape ):
78+ def frwd_sc_nd (s , x_shape ):
7979 ss = s if s is not None else x_shape
8080 nn = prod (ss )
8181 return 1 / nn if nn != 0 else 1
@@ -812,9 +812,9 @@ def fftn(a, s=None, axes=None, norm=None):
812812 if norm in (None , "backward" ):
813813 fsc = 1.0
814814 elif norm == "forward" :
815- fsc = frwd_sc_nd (s , axes , x .shape )
815+ fsc = frwd_sc_nd (s , x .shape )
816816 else :
817- fsc = sqrt (frwd_sc_nd (s , axes , x .shape ))
817+ fsc = sqrt (frwd_sc_nd (s , x .shape ))
818818
819819 return trycall (
820820 mkl_fft .fftn ,
@@ -928,9 +928,9 @@ def ifftn(a, s=None, axes=None, norm=None):
928928 if norm in (None , "backward" ):
929929 fsc = 1.0
930930 elif norm == "forward" :
931- fsc = frwd_sc_nd (s , axes , x .shape )
931+ fsc = frwd_sc_nd (s , x .shape )
932932 else :
933- fsc = sqrt (frwd_sc_nd (s , axes , x .shape ))
933+ fsc = sqrt (frwd_sc_nd (s , x .shape ))
934934
935935 return trycall (
936936 mkl_fft .ifftn ,
@@ -1227,11 +1227,11 @@ def rfftn(a, s=None, axes=None, norm=None):
12271227 elif norm == "forward" :
12281228 x = asanyarray (x )
12291229 s , axes = _cook_nd_args (x , s , axes )
1230- fsc = frwd_sc_nd (s , axes , x .shape )
1230+ fsc = frwd_sc_nd (s , x .shape )
12311231 else :
12321232 x = asanyarray (x )
12331233 s , axes = _cook_nd_args (x , s , axes )
1234- fsc = sqrt (frwd_sc_nd (s , axes , x .shape ))
1234+ fsc = sqrt (frwd_sc_nd (s , x .shape ))
12351235
12361236 return trycall (
12371237 mkl_fft .rfftn ,
@@ -1384,11 +1384,11 @@ def irfftn(a, s=None, axes=None, norm=None):
13841384 elif norm == "forward" :
13851385 x = asanyarray (x )
13861386 s , axes = _cook_nd_args (x , s , axes , invreal = 1 )
1387- fsc = frwd_sc_nd (s , axes , x .shape )
1387+ fsc = frwd_sc_nd (s , x .shape )
13881388 else :
13891389 x = asanyarray (x )
13901390 s , axes = _cook_nd_args (x , s , axes , invreal = 1 )
1391- fsc = sqrt (frwd_sc_nd (s , axes , x .shape ))
1391+ fsc = sqrt (frwd_sc_nd (s , x .shape ))
13921392
13931393 return trycall (
13941394 mkl_fft .irfftn ,
0 commit comments