Commit d71aa89
committed
MAINT: Fixed performance issue with rfft2 and irfft2
When fftn or ifftn are called on 1D arrays we should go though fft/ifft, instead
of using _direct_fftnd to take advantage of caching.
Unlike in rfftn_numpy, where out-of-place rfft_numpy is performed first, and
the subsequent fftn calls can be in-place, for irfftn_numpy the ifftn need to be
performance first, and one must check whether the first iteration can in fact
be performed in place.1 parent 8a01af5 commit d71aa89
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
712 | | - | |
| 712 | + | |
713 | 713 | | |
714 | 714 | | |
715 | 715 | | |
| |||
841 | 841 | | |
842 | 842 | | |
843 | 843 | | |
| 844 | + | |
844 | 845 | | |
845 | 846 | | |
846 | 847 | | |
| |||
849 | 850 | | |
850 | 851 | | |
851 | 852 | | |
852 | | - | |
| 853 | + | |
| 854 | + | |
853 | 855 | | |
854 | 856 | | |
855 | | - | |
| 857 | + | |
| 858 | + | |
856 | 859 | | |
857 | 860 | | |
0 commit comments