@@ -408,12 +408,12 @@ def _fft1d_impl(x, n=None, axis=-1, overwrite_arg=False, direction=+1, double fs
408408 return f_arr
409409
410410
411- def rfft (x , n = None , axis = - 1 , overwrite_x = False , fwd_scale = 1.0 ):
411+ def rfftpack (x , n = None , axis = - 1 , overwrite_x = False , fwd_scale = 1.0 ):
412412 """Packed real-valued harmonics of FFT of a real sequence x"""
413413 return _rr_fft1d_impl2 (x , n = n , axis = axis , overwrite_arg = overwrite_x , fsc = fwd_scale )
414414
415415
416- def irfft (x , n = None , axis = - 1 , overwrite_x = False , fwd_scale = 1.0 ):
416+ def irfftpack (x , n = None , axis = - 1 , overwrite_x = False , fwd_scale = 1.0 ):
417417 """Inverse FFT of a real sequence, takes packed real-valued harmonics of FFT"""
418418 return _rr_ifft1d_impl2 (x , n = n , axis = axis , overwrite_arg = overwrite_x , fsc = fwd_scale )
419419
@@ -524,7 +524,7 @@ def _rr_fft1d_impl2(x, n=None, axis=-1, overwrite_arg=False, double fsc=1.0):
524524 """
525525 Uses MKL to perform real packed 1D FFT on the input array x along the given axis.
526526
527- This done by using rfft_numpy and post-processing the result.
527+ This done by using rfft and post-processing the result.
528528 Thus overwrite_arg is effectively discarded.
529529
530530 Functionally equivalent to scipy.fftpack.rfft
@@ -580,7 +580,7 @@ def _rr_ifft1d_impl2(x, n=None, axis=-1, overwrite_arg=False, double fsc=1.0):
580580 """
581581 Uses MKL to perform real packed 1D FFT on the input array x along the given axis.
582582
583- This done by using rfft_numpy and post-processing the result.
583+ This done by using rfft and post-processing the result.
584584 Thus overwrite_arg is effectively discarded.
585585
586586 Functionally equivalent to scipy.fftpack.irfft
@@ -793,11 +793,11 @@ def _rc_ifft1d_impl(x, n=None, axis=-1, overwrite_arg=False, double fsc=1.0):
793793 return f_arr
794794
795795
796- def rfft_numpy (x , n = None , axis = - 1 , fwd_scale = 1.0 ):
796+ def rfft (x , n = None , axis = - 1 , fwd_scale = 1.0 ):
797797 return _rc_fft1d_impl (x , n = n , axis = axis , fsc = fwd_scale )
798798
799799
800- def irfft_numpy (x , n = None , axis = - 1 , fwd_scale = 1.0 ):
800+ def irfft (x , n = None , axis = - 1 , fwd_scale = 1.0 ):
801801 return _rc_ifft1d_impl (x , n = n , axis = axis , fsc = fwd_scale )
802802
803803
@@ -1121,12 +1121,12 @@ def ifftn(x, shape=None, axes=None, overwrite_x=False, fwd_scale=1.0):
11211121 return _fftnd_impl (x , shape = shape , axes = axes , overwrite_x = overwrite_x , direction = - 1 , fsc = fwd_scale )
11221122
11231123
1124- def rfft2_numpy (x , s = None , axes = (- 2 ,- 1 ), fwd_scale = 1.0 ):
1125- return rfftn_numpy (x , s = s , axes = axes , fsc = fwd_scale )
1124+ def rfft2 (x , s = None , axes = (- 2 ,- 1 ), fwd_scale = 1.0 ):
1125+ return rfftn (x , s = s , axes = axes , fsc = fwd_scale )
11261126
11271127
1128- def irfft2_numpy (x , s = None , axes = (- 2 ,- 1 ), fwd_scale = 1.0 ):
1129- return irfftn_numpy (x , s = s , axes = axes , fsc = fwd_scale )
1128+ def irfft2 (x , s = None , axes = (- 2 ,- 1 ), fwd_scale = 1.0 ):
1129+ return irfftn (x , s = s , axes = axes , fsc = fwd_scale )
11301130
11311131
11321132def _remove_axis (s , axes , axis_to_remove ):
@@ -1181,16 +1181,15 @@ def _fix_dimensions(cnp.ndarray arr, object s, object axes):
11811181 return np .pad (arr , tuple (pad_widths ), 'constant' )
11821182
11831183
1184- def rfftn_numpy (x , s = None , axes = None , fwd_scale = 1.0 ):
1184+ def rfftn (x , s = None , axes = None , fwd_scale = 1.0 ):
11851185 a = np .asarray (x )
11861186 no_trim = (s is None ) and (axes is None )
11871187 s , axes = _cook_nd_args (a , s , axes )
11881188 la = axes [- 1 ]
1189- # trim array, so that rfft_numpy avoids doing
1190- # unnecessary computations
1189+ # trim array, so that rfft avoids doing unnecessary computations
11911190 if not no_trim :
11921191 a = _trim_array (a , s , axes )
1193- a = rfft_numpy (a , n = s [- 1 ], axis = la , fwd_scale = fwd_scale )
1192+ a = rfft (a , n = s [- 1 ], axis = la , fwd_scale = fwd_scale )
11941193 if len (s ) > 1 :
11951194 if not no_trim :
11961195 ss = list (s )
@@ -1214,7 +1213,7 @@ def rfftn_numpy(x, s=None, axes=None, fwd_scale=1.0):
12141213 return a
12151214
12161215
1217- def irfftn_numpy (x , s = None , axes = None , fwd_scale = 1.0 ):
1216+ def irfftn (x , s = None , axes = None , fwd_scale = 1.0 ):
12181217 a = np .asarray (x )
12191218 no_trim = (s is None ) and (axes is None )
12201219 s , axes = _cook_nd_args (a , s , axes , invreal = True )
@@ -1243,5 +1242,5 @@ def irfftn_numpy(x, s=None, axes=None, fwd_scale=1.0):
12431242 for ii in range (len (axes )- 1 ):
12441243 a = ifft (a , s [ii ], axes [ii ], overwrite_x = ovr_x )
12451244 ovr_x = True
1246- a = irfft_numpy (a , n = s [- 1 ], axis = la , fwd_scale = fwd_scale )
1245+ a = irfft (a , n = s [- 1 ], axis = la , fwd_scale = fwd_scale )
12471246 return a
0 commit comments