10 Nov
2022
10 Nov
'22
8:19 p.m.
(Pdb) print(inspect.getsource(np.fft.irfft)) @array_function_dispatch(_fft_dispatcher) def irfft(a, n=None, axis=-1, norm=None): a = asarray(a) if n is None: n = (a.shape[axis] - 1) * 2 inv_norm = _get_backward_norm(n, norm) output = _raw_fft(a, n, axis, True, False, inv_norm) return output -> N is (N - 1) * 2, at least i guess i'll take it slower. i know i've made ifft work, so making irfft work should be pretty simple from that.