mmuckley / torchkbnufft

A high-level, easy-to-deploy non-uniform Fast Fourier Transform in PyTorch.
https://torchkbnufft.readthedocs.io/
MIT License
201 stars 44 forks source link

Could you give an example of implementing a two-dimensional Fourier transform by use torchkbnufft? #81

Closed lalalashini closed 1 year ago

lalalashini commented 1 year ago

Hello,torchkbnufft is great but the example is not easy.So,I want to know if I want to compute the Fourier transform of a two-dimensional array by use torchkbnufft,what should I do? example:a = torch.rand((4,4)) fft: b = torch.fft.fft2(a) torchkbnufft:???