Skip to content

Commit e23007b

Browse files
committed
refactor remove dead code
1 parent 958291a commit e23007b

File tree

1 file changed

+0
-13
lines changed
  • src/mrinufft/operators/interfaces

1 file changed

+0
-13
lines changed

src/mrinufft/operators/interfaces/nfft.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,6 @@
1111
PYNFFT_AVAILABLE = False
1212

1313

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-
2714
class RawPyNFFT3:
2815
"""Binding for the pyNFFT3 package."""
2916

0 commit comments

Comments
 (0)