We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 958291a commit e23007bCopy full SHA for e23007b
src/mrinufft/operators/interfaces/nfft.py
@@ -11,19 +11,6 @@
11
PYNFFT_AVAILABLE = False
12
13
14
-def get_fourier_matrix(ktraj, shape, ndim, do_ifft=False):
15
- """Get the NDFT Fourier Matrix."""
16
- n = np.prod(shape)
17
- matrix = np.zeros((n, n), dtype=complex)
18
- r = [np.arange(shape[i]) for i in range(ndim)]
19
- grid_r = np.reshape(np.meshgrid(*r, indexing="ij"), (ndim, np.prod(shape)))
20
- traj_grid = ktraj @ grid_r
21
- matrix = np.exp(-2j * np.pi * traj_grid)
22
- if do_ifft:
23
- matrix = matrix.conj().T
24
- return matrix / np.sqrt(n)
25
-
26
27
class RawPyNFFT3:
28
"""Binding for the pyNFFT3 package."""
29
0 commit comments