jakevdp / nfft

Lightweight non-uniform Fast Fourier Transform in Python
MIT License
201 stars 29 forks source link

Typo in the documentation of ndft_adjoint and nfft_adjoint #12

Open algorithmx opened 5 years ago

algorithmx commented 5 years ago

https://github.com/jakevdp/nfft/blob/d432385390f4c090e420564f1ef83b404d8dcde5/nfft/core.py#L46

Signature: nfft.nfft_adjoint(x, f, N, sigma=3, tol=1e-08, m=None, kernel='gaussian', use_fft=True, truncated=True) Docstring: Compute the adjoint nonuniform fast Fourier transform

\hat{f}k = \sum{0 \le j < N} f_j \exp(2 \pi i k x_j) SHOULD BE \hat{f}k = \sum{0 \le j < M} f_j \exp(2 \pi i k x_j) # where len(x)==M

where k = range(-N/2, N/2)